service = new GongdengOrderService(); $this->fxService = new GongdengFoxiangService(); $this->mealService = new LampMealsService(); $this->deviceService = new DevicesService(); } /** * 套餐列表 * @return mixed */ public function index(){ return $this->service->getMyGdList($this->userId); } /** * 佛像列表 * @return mixed */ public function fxInfo(){ return $this->fxService->info(); } /** * 佛像列表 * @return mixed */ public function fxList(){ return $this->fxService->getDataList(); } /** * 套餐列表 * @return mixed */ public function mealList(){ return $this->mealService->getDataList(); } /** * 功德榜记录 * @return mixed */ public function gdList(){ return $this->service->getGdList(); } /** * 供灯下单 * @return mixed */ public function buy(GongdengValidator $validator){ $params = $validator->check(request()->all(),'buy'); if(!is_array($params)){ return message($params, false); } return $this->service->buy($this->userId); } /** * 供灯拍照图片 * @return array */ public function picList(){ return $this->deviceService->getPicList(); } }