diff --git a/app/Http/Middleware/AuthApi.php b/app/Http/Middleware/AuthApi.php index dace1c9..efc71f5 100644 --- a/app/Http/Middleware/AuthApi.php +++ b/app/Http/Middleware/AuthApi.php @@ -29,17 +29,9 @@ class AuthApi } // TODO 登录部分待优化 if (!Cache::get($auth)) { - return response()->json([ - 'code' => -2, - 'msg' => '请先登录', - 'data' => [], - 'status' => 500, - ]); - } - if (!Cache::get($appid)) { return response()->json([ 'code' => -1, - 'msg' => 'lose appid', + 'msg' => '请先登录', 'data' => [], 'status' => 500, ]);