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); } //商品优惠卷 public function categoryCouponList() { $params = (new UserCouponValidate())->goCheck('category',[ 'user_id'=>$this->userId ]); $result = UserCouponLogic::categoryCouponList($params); if (false === $result) { return $this->fail(UserCouponLogic::getError()); } return $this->data($result); } }