From 3768dc00a74c71cec49828d3a84ed3efa9f6e846 Mon Sep 17 00:00:00 2001 From: Easy Date: Tue, 4 Jan 2022 22:11:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3user=20info=20=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E4=B8=BA=E6=95=B0=E7=BB=84=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/Http/Controllers/PushDeerUserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/Http/Controllers/PushDeerUserController.php b/api/app/Http/Controllers/PushDeerUserController.php index d7b6e68..bf39c78 100644 --- a/api/app/Http/Controllers/PushDeerUserController.php +++ b/api/app/Http/Controllers/PushDeerUserController.php @@ -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)