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

完善检索商品标识

@@ -371,6 +371,19 @@ class Backend extends Controller @@ -371,6 +371,19 @@ class Backend extends Controller
371 break; 371 break;
372 } 372 }
373 } 373 }
  374 +
  375 + foreach($where as &$w_value){
  376 + if($w_value[0] == 'ffg_goods.flag'){
  377 + if($w_value[2] == '推荐'){
  378 + $w_value[0] = 'ffg_goods.is_recommend';
  379 + }else if($w_value[2] == '设计师作品'){
  380 + $w_value[0] = 'ffg_goods.is_design';
  381 + }else if($w_value[2] == '新人特惠'){
  382 + $w_value[0] = 'ffg_goods.is_new';
  383 + }
  384 + $w_value[2] = 1;
  385 + }
  386 + }
374 $where = function ($query) use ($where) { 387 $where = function ($query) use ($where) {
375 foreach ($where as $k => $v) { 388 foreach ($where as $k => $v) {
376 if (is_array($v)) { 389 if (is_array($v)) {