Explorar el Código

Wesmiler 人人车 初始化项目 0816

APPLE hace 3 años
padre
commit
31c47e2fbc
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      application/http/middleware/JWTAuthMiddleware.php

+ 2 - 2
application/http/middleware/JWTAuthMiddleware.php

@@ -45,13 +45,13 @@ class JWTAuthMiddleware extends Middleware
                     return $this->setAuthentication($next($request));
                 }catch (TokenExpiredException $e){
                     throw new TokenException([
-                        'errmsg' => 'Unauthorized:Request token denied!'
+                        'errmsg' => '登录失效'
                     ]);
                 }
             }
 
             throw new TokenException([
-                'errmsg' => 'Unauthorized:Request denied!'
+                'errmsg' => '请先登录'
             ]);
         }
         return $next($request);