wupengfei před 2 roky
rodič
revize
d373961c5e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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