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

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

@@ -45,7 +45,7 @@ class Base extends Controller
         $this->is_test = input('test',0);// 测试用的
         $path = explode('/',$this->request->path());
         if( input('user_id')) $this->user_id = input('user_id');
-        if( input('user')) $this->user_id = input('user_id');
+        if( input('user')) $this->user_id = input('user');
         if(!empty($this->need_login) && in_array(end($path),$this->need_login)) $this->checkLogin();
     }
     //校验jwt权限API