successful(UserLevel::setLevelComplete($request->uid())); } /** * 会员等级列表 * @param Request $request * @return mixed */ public function grade(Request $request) { return app('json')->successful(SystemUserLevel::getLevelList($request->uid())); } /** * 获取等级任务 * @param Request $request * @param $id * @return mixed */ public function task(Request $request, $id) { return app('json')->successful(SystemUserTask::getTashList($id,$request->uid())); } /** * 获取付费等级列表 * @param Request $request * @return mixed */ public function pay_grade(Request $request) { return app('json')->successful(SystemUserLevel::where('id',2)->select()->toarray()); } }