wupengfei 2 years ago
parent
commit
2cb66b1fcf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Base.php

+ 1 - 1
application/api/controller/Base.php

@@ -140,7 +140,7 @@ class Base extends Controller
      */
     protected function error($msg = '', $data = null, $is_login = 1, $code = 0, $type = null, array $header = [])
     {
-        if(empty($this->uid)){
+        if(empty($this->uid) && $is_login != -1 ){
             $is_login = 0;
         }
         $this->results($msg, $data, $is_login, $code, $type, $header);