作者 lyh

更新产品

@@ -168,7 +168,7 @@ class ProductController extends BaseController @@ -168,7 +168,7 @@ class ProductController extends BaseController
168 $query->where('created_at', '>=' ,$this->param['start_at'].' 00:00:00')->where('created_at', '<=' ,$this->param['end_at'].' 59:59:59'); 168 $query->where('created_at', '>=' ,$this->param['start_at'].' 00:00:00')->where('created_at', '<=' ,$this->param['end_at'].' 59:59:59');
169 } 169 }
170 $this->param['featured_status'] = $this->param['featured_status'] ?? 0; 170 $this->param['featured_status'] = $this->param['featured_status'] ?? 0;
171 - if(($this->param['featured_status'] != Category::STATUS_ACTIVE)) { 171 + if($this->param['featured_status'] != Category::STATUS_ACTIVE) {
172 $query = $query->where('title','not like','Featured%'); 172 $query = $query->where('title','not like','Featured%');
173 } 173 }
174 return $query; 174 return $query;