Merge pull request '修改token不存在是的提示信息' (#26) from zhangwei into dev

Reviewed-on: #26
This commit is contained in:
weiz 2023-11-28 17:55:57 +08:00
commit 96f833c0a4
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class LoginMiddleware
//不直接判断$isNotNeedLogin结果使不需要登录的接口通过为了兼容某些接口可以登录或不登录访问
if (empty($token) && !$isNotNeedLogin) {
//没有token并且该地址需要登录才能访问, 指定show为0前端不弹出此报错
return JsonService::fail('请求参数缺token', [], 0, 0);
return JsonService::fail('用户信息不存在', [], 0, 0);
}
$userInfo = (new UserTokenCache())->getUserInfo($token);