userEdit用户名会被解密保存的bug临时修复
This commit is contained in:
parent
39fc0e5a73
commit
f6c7b1a5d5
|
@ -634,7 +634,7 @@ class User_model extends CI_Model
|
|||
return $this->rs;
|
||||
}
|
||||
$rowUser = $this->tb_user->get_one(array('id' => $userId));
|
||||
$username = $info['username_u'];
|
||||
$username = dbenc($info['username_u']); //用户名加密
|
||||
$companyRow = $this->tb_company->get_one(array('id' => $this->session->companyId));
|
||||
$arr = array(
|
||||
'type_id' => $info['typeId'],
|
||||
|
@ -728,6 +728,7 @@ class User_model extends CI_Model
|
|||
} else {
|
||||
$arr['valid_datetime'] = '';
|
||||
}
|
||||
|
||||
$result = $this->tb_user->update($arr, array('id' => $userId));
|
||||
if ($result) {
|
||||
$this->rs['success'] = true;
|
||||
|
|
Loading…
Reference in New Issue