qifengquan 1 year ago
parent
commit
b5b371d32e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/data/controller/api/Auth.php

+ 1 - 1
app/data/controller/api/Auth.php

@@ -72,7 +72,7 @@ abstract class Auth extends Controller
 //                    $this->error('请重新登录,登录认证无效', '{-null-}', 401);
 //                }
                 if($this->needLogin()) {
-                    if (empty($token)) $this->error('登录认证不能为空!',null,401);
+                    if (empty($token)) $this->error('登录认证不能为空!',null);
                 }
                 [$state, $info, $this->uuid] = UserTokenService::check($this->type, $token);
                 if($this->needLogin()) {