Browse Source

假注销换真注销

lizhen_gitee 8 months ago
parent
commit
841c217065
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/User.php

+ 1 - 1
application/api/controller/User.php

@@ -1122,7 +1122,7 @@ class User extends Api
             'mobile' => 'close_'.$this->auth->mobile,
             'wechat_openid' => 'close_'.$this->auth->wechat_openid,
         ];
-        Db::name('user')->where('id',$this->auth->id)->update();
+        Db::name('user')->where('id',$this->auth->id)->update($data);
 
         $this->auth->logout();
         $this->success('注销成功');