作者 jinglong
1 个管道 的构建 通过 耗费 4 秒

完善检索商品标识

... ... @@ -371,6 +371,19 @@ class Backend extends Controller
break;
}
}
foreach($where as &$w_value){
if($w_value[0] == 'ffg_goods.flag'){
if($w_value[2] == '推荐'){
$w_value[0] = 'ffg_goods.is_recommend';
}else if($w_value[2] == '设计师作品'){
$w_value[0] = 'ffg_goods.is_design';
}else if($w_value[2] == '新人特惠'){
$w_value[0] = 'ffg_goods.is_new';
}
$w_value[2] = 1;
}
}
$where = function ($query) use ($where) {
foreach ($where as $k => $v) {
if (is_array($v)) {
... ...