diff --git a/backstage/application/backstage/models/User_model.php b/backstage/application/backstage/models/User_model.php index 9c2ebe4..e05046b 100644 --- a/backstage/application/backstage/models/User_model.php +++ b/backstage/application/backstage/models/User_model.php @@ -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;