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