|
@@ -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('注销成功');
|