作者 lyh

Merge branch 'master-server' of http://47.244.231.31:8099/zhl/globalso-v6

@@ -860,6 +860,7 @@ class ProductLogic extends BaseLogic @@ -860,6 +860,7 @@ class ProductLogic extends BaseLogic
860 */ 860 */
861 public function getSearchCategoryList() 861 public function getSearchCategoryList()
862 { 862 {
  863 + $data = [];
863 $categoryModel = new Category(); 864 $categoryModel = new Category();
864 $this->param['deleted_at'] = null; 865 $this->param['deleted_at'] = null;
865 $this->param['featured_status'] = $this->param['featured_status'] ?? 0; 866 $this->param['featured_status'] = $this->param['featured_status'] ?? 0;
@@ -869,7 +870,6 @@ class ProductLogic extends BaseLogic @@ -869,7 +870,6 @@ class ProductLogic extends BaseLogic
869 unset($this->param['featured_status']); 870 unset($this->param['featured_status']);
870 $list = $categoryModel->list($this->param, ['sort', 'id'], ['id', 'pid', 'title']); 871 $list = $categoryModel->list($this->param, ['sort', 'id'], ['id', 'pid', 'title']);
871 if (!empty($list)) { 872 if (!empty($list)) {
872 - $data = [];  
873 foreach ($list as $v) { 873 foreach ($list as $v) {
874 $v = (array)$v; 874 $v = (array)$v;
875 if ($v['pid'] == 0) { 875 if ($v['pid'] == 0) {
@@ -169,7 +169,7 @@ return [ @@ -169,7 +169,7 @@ return [
169 ], 169 ],
170 //操作日志 170 //操作日志
171 'operator_log' =>[ 171 'operator_log' =>[
172 - 'log'=>false,//true开启 172 + 'log'=>true,//true开启
173 'action' => [],//不需要写入日志的方法 173 'action' => [],//不需要写入日志的方法
174 ], 174 ],
175 ]; 175 ];