module/flk/source/shop/flk_product.ctrl.php
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
*Author 雷日锦 362606856@qq.com
*控制器自动生成
*/
if(!defined("ROOT_PATH")) exit("die Access ");
class flk_productControl extends skymvc{
public function __construct(){
parent::__construct();
}
public function onDefault(){
$where=" status in(0,1,2) AND shopid=".SHOPID;
$url="/moduleshop.php?m=flk_product&a=default";
$limit=20;
$start=get("per_page","i");
$sarr=array("id","isrecommend","ishot");
foreach($_GET as $k=>$v){
if($_GET[$k] && in_array($k,$sarr)){
$where.=" AND ".$k."='".get($k,'x')."' ";
$url.="&".$k."=".urlencode(get($k));
}
}
$bstatus=get("bstatus","i");
switch($bstatus){
case 1:
$where.=" AND status=1 ";
break;
case 2:
$where.=" AND status in(0,2) ";
break;
}
$stime=get('stime','h');
if($stime){
$where.=" AND createtime>='".$stime."' ";
}
$etime=get('etime','h');
if($etime){
$where.=" AND createtime<='".$etime."'";
}
$catid=get_post('catid','i');
if($catid){
$cids=MM("b2b","b2b_shop_product_category")->id_family($catid);
$where.=" AND shop_catid in("._implode($cids).") ";
$url.="&catid=".$catid;
}
$title=get('title','h');
if($title){
$where.=" AND title like '%".$title."%'";
$url.="&title=".urlencode($title);
}
$option=array(
"start"=>$start,
"limit"=>$limit,
"order"=>" id DESC",
"where"=>$where
);
$rscount=true;
后面还有 306 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。