data_post['user_id'] = isset($this->user['id']) ? $this->user['id'] : 0; SearchService::SearchAdd($this->data_post); // 获取数据 $ret = SearchService::GoodsList($this->data_post); $result = $ret['data']; // 分类 $result['category'] = empty($this->data_post['category_id']) ? [] : GoodsService::GoodsCategoryRow(['id'=>$this->data_post['category_id']]); return BaseService::DataReturn($result); } } ?>