Browse Source

提示登录 code=-2

develop
李可松 4 years ago
parent
commit
739fa86c10
  1. 2
      app/Http/Middleware/ApiAuth.php

2
app/Http/Middleware/ApiAuth.php

@ -33,7 +33,7 @@ class ApiAuth
$user_id = Cache::get($auth);
if (empty($user_id) || $user_id != User::query()->where(['id' => $user_id, 'status' => 1])->value('id')) {
return response()->json([
'code' => -1,
'code' => -2,
'msg' => '用户不存在或登录已超时,请重新登录',
'data' => [],
'status' => 403,

Loading…
Cancel
Save