diff --git a/app/api/http/middleware/LoginMiddleware.php b/app/api/http/middleware/LoginMiddleware.php index bf69da41..ff36adca 100644 --- a/app/api/http/middleware/LoginMiddleware.php +++ b/app/api/http/middleware/LoginMiddleware.php @@ -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);