|
@@ -45,6 +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(!empty($this->need_login) && in_array(end($path),$this->need_login)) $this->checkLogin();
|
|
|
}
|
|
|
//校验jwt权限API
|
|
@@ -54,6 +55,7 @@ class Base extends Controller
|
|
|
if(empty($authorization) || $authorization == null){
|
|
|
if($this->is_test == 1) {
|
|
|
$this->user_id = input('user_id') ? input('user_id') : 22;
|
|
|
+ if(input('user')) $this->user_id = input('user');
|
|
|
return true;
|
|
|
}
|
|
|
$this->error('Token不存在,拒绝访问--','',0,-1);
|