diff --git a/app/admin/controller/User.php b/app/admin/controller/User.php index fd006f457..04bdca8ac 100644 --- a/app/admin/controller/User.php +++ b/app/admin/controller/User.php @@ -91,7 +91,7 @@ class User extends Controller if ($post['password'] !== $post['repassword']) { $this->error('两次输入的密码不一致!'); } - if (DataExtend::save($this->table, ['id' => $post['id'], 'password' => md5($post['password'])], 'id')) { + if (data_save($this->table, ['id' => $post['id'], 'password' => md5($post['password'])], 'id')) { $this->success('密码修改成功,下次请使用新密码登录!', ''); } else { $this->error('密码修改失败,请稍候再试!');