wzh 5 年之前
父节点
当前提交
e96eb2e77c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      api/application/controllers/User.php

+ 3 - 0
api/application/controllers/User.php

@@ -275,6 +275,9 @@ class User extends Base_Controller{
 
             $privilegeIds = $this->input->post('privilegeIds',true);
 			if ($privilegeIds !== NULL && $privilegeIds !== '') $data['privilege'] = $privilegeIds;
+			$data['role'] = intval($this->input->post('role'));
+
+			if (empty($data['role'])) exit(json_result('0724',$this->response['0724']));
 
 			$this->User_model->update($data,$where);