|
@@ -25,12 +25,13 @@ class Base_Controller extends CI_Controller {
|
|
|
$token = $this->input->post('token',true);
|
|
|
$client_key = $this->input->post('client_key',true);
|
|
|
$os = intval($this->input->post('os',true));
|
|
|
+ $role = intval($this->input->post('role',true));
|
|
|
|
|
|
if(empty($username)){
|
|
|
exit(json_result('0001', $this->response['0001']));
|
|
|
}
|
|
|
|
|
|
- $userinfo = $this->User_model->get_one(array('username'=>$username));
|
|
|
+ $userinfo = $this->User_model->get_one(array('username'=>$username,'role'=>$role));
|
|
|
if(empty($userinfo)){
|
|
|
exit(json_result('0102', $this->response['0102']));
|
|
|
}
|