作者 lyh

gx脚本demo

@@ -905,7 +905,7 @@ class ProductLogic extends BaseLogic @@ -905,7 +905,7 @@ class ProductLogic extends BaseLogic
905 $this->param['deleted_at'] = null; 905 $this->param['deleted_at'] = null;
906 $this->param['featured_status'] = $this->param['featured_status'] ?? 0; 906 $this->param['featured_status'] = $this->param['featured_status'] ?? 0;
907 if(($this->param['featured_status'] != Category::STATUS_ACTIVE)) { 907 if(($this->param['featured_status'] != Category::STATUS_ACTIVE)) {
908 - $this->param['title'] = ['in',['Featured','featured']]; 908 + $this->param['title'] = ['!=','Featured'];
909 } 909 }
910 unset($this->param['featured_status']); 910 unset($this->param['featured_status']);
911 $list = $categoryModel->list($this->param, ['sort', 'id'], ['id', 'pid', 'title']); 911 $list = $categoryModel->list($this->param, ['sort', 'id'], ['id', 'pid', 'title']);