Browse Source

修改登录判断

dev
李可松 5 years ago
parent
commit
3d1f558157
  1. 10
      app/Http/Middleware/AuthApi.php

10
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,
]);

Loading…
Cancel
Save