修正接口返回值未包裹的问题

This commit is contained in:
Easy 2021-12-23 16:06:22 +08:00
parent aa59344b12
commit a036c8a558
3 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class PushDeerMessageController extends Controller
} }
} }
return ['result'=>$result]; return http_result(['result'=>$result]);
} }

View File

@ -10,7 +10,7 @@ class PushDeerUserController extends Controller
public function info(Request $request) public function info(Request $request)
{ {
//return $_SESSION; //return $_SESSION;
return PushDeerUser::where('id', $_SESSION['uid'])->get(); return http_result(PushDeerUser::where('id', $_SESSION['uid'])->get());
} }
public function fakeLogin(Request $request) public function fakeLogin(Request $request)

BIN
doc/架构文档.key Executable file

Binary file not shown.