浏览代码

假注销换真注销

lizhen_gitee 9 月之前
父节点
当前提交
841c217065
共有 1 个文件被更改,包括 1 次插入1 次删除
  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('注销成功');