dataLists(new GoodsLists()); } public function hotData(){ $result = GoodsLogic::getHotData(); return $this->data($result); } public function categoryDetail() { $params = (new GoodsValidate())->goCheck('category'); $result = GoodsLogic::detail($params['goods_category_id'],'category'); return $this->data($result); } public function goodsDetail() { $params = (new GoodsValidate())->goCheck('goods'); $result = GoodsLogic::detail($params['id'],'goods'); return $this->data($result); } }