Browse Source

真实注销

lizhen_gitee 6 tháng trước cách đây
mục cha
commit
1c0f75dd50
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      application/api/controller/User.php

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

@@ -835,7 +835,13 @@ class User extends Api
 //        $tenIm = new Tenim();
 //        $tenIm->loginoutim($this->auth->id);
 
-        Db::name('user')->where('id',$this->auth->id)->update(['status'=>-1]);
+        $data = [
+            'status' => -1,
+            'mobile' => 'close_'.$this->auth->mobile,
+            'wechat_openid' => 'close_'.$this->auth->wechat_openid,
+            'ios_user_id' => 'close_'.$this->auth->ios_user_id,
+        ];
+        Db::name('user')->where('id',$this->auth->id)->update($data);
 
         $this->auth->logout();
         $this->success('注销成功');