修正user info 返回为数组的问题

This commit is contained in:
Easy 2022-01-04 22:11:03 +08:00
parent b85850c9db
commit 3768dc00a7

View File

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