|
@@ -46,13 +46,14 @@ class User extends Lyapi_Controller{
|
|
|
if($userinfo['userpass'] != $pass){
|
|
if($userinfo['userpass'] != $pass){
|
|
|
$this->_json_error('密码错误','500');
|
|
$this->_json_error('密码错误','500');
|
|
|
}
|
|
}
|
|
|
- $power = $this->power->read($userinfo['power']);
|
|
|
|
|
- if(empty($power)){
|
|
|
|
|
- $this->_json_error('角色未设置','500');
|
|
|
|
|
- }
|
|
|
|
|
- if(empty($power['lyapiid'])){
|
|
|
|
|
- $this->_json_error('权限未设置','500');
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ $power = $this->power->read($userinfo['power']);
|
|
|
|
|
+ if(empty($power)){
|
|
|
|
|
+ $this->_json_error('角色未设置','500');
|
|
|
|
|
+ }
|
|
|
|
|
+ if(empty($power['lyapiid'])){
|
|
|
|
|
+ $this->_json_error('权限未设置','500');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$lyapiids = explode("|",trim($power['lyapiid'],"|"));
|
|
$lyapiids = explode("|",trim($power['lyapiid'],"|"));
|