From f6c7b1a5d5c257b0f93a6d26bc668c8e158d11e8 Mon Sep 17 00:00:00 2001 From: hxchigd Date: Sat, 13 Apr 2024 22:16:15 +0800 Subject: [PATCH] =?UTF-8?q?userEdit=E7=94=A8=E6=88=B7=E5=90=8D=E4=BC=9A?= =?UTF-8?q?=E8=A2=AB=E8=A7=A3=E5=AF=86=E4=BF=9D=E5=AD=98=E7=9A=84bug?= =?UTF-8?q?=E4=B8=B4=E6=97=B6=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backstage/application/backstage/models/User_model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;