lizhen_gitee пре 10 месеци
родитељ
комит
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('注销成功');