service = new GongdengOrderService(); $this->fxService = new GongdengFoxiangService(); $this->mealService = new LampMealsService(); } /** * 佛像列表 * @return mixed */ public function fxInfo(){ return $this->fxService->info(); } /** * 佛像列表 * @return mixed */ public function fxList(){ return $this->fxService->getList(); } /** * 套餐列表 * @return mixed */ public function mealList(){ return $this->mealService->getDataList(); } /** * 功德榜记录 * @return mixed */ public function gdList(){ return $this->service->getList(); } /** * 供灯下单 * @return mixed */ public function buy(GongdengValidator $validate){ $params = $validate->check(request()->all(),'buy'); if(!is_array($params)){ return message($params, false); } return $this->service->buy($this->userId); } }