Browse Source

no message

wzh 5 years ago
parent
commit
3f84ecca3b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/application/controllers/User.php

+ 2 - 2
api/application/controllers/User.php

@@ -155,7 +155,7 @@ class User extends Base_Controller{
 			$where['pid'] = $userid;
 		}
 
-		$role = intval($this->input->post('role',true));
+		$role = intval($this->input->post('roleType',true));
 		if (!empty($role)) $where['role'] = $role;
 
 		$keywords = $this->input->post('keywords',true);
@@ -179,7 +179,7 @@ class User extends Base_Controller{
 		
 		$email = $this->input->post('email',true);
 		$data['company'] = $this->input->post('company',true);
-		$data['role'] = intval($this->input->post('role'));
+		$data['role'] = intval($this->input->post('roleType'));
 		$avatar = $this->input->post('avatar',true);
 		if (isset($avatar) && !empty($avatar)) {
             $path = parse_url($avatar);