task($uid, $type); return response([ 'code' => 200, 'message' => 'success' ]); } /** * 获取新年小花红包 */ public function getYearFlower() { $uid = Auth::auth(); $taskService = new TaskService(); $flower = $taskService->getYearFlower($uid); return array( 'code' => 200, 'message' => 'success', 'data' => [ 'red_flower' => $flower ] ); } }