正在显示
1 个修改的文件
包含
13 行增加
和
0 行删除
@@ -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)) { |
-
请 注册 或 登录 后发表评论