|
@@ -1117,7 +1117,12 @@ 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,
|
|
|
+ ];
|
|
|
+ Db::name('user')->where('id',$this->auth->id)->update();
|
|
|
|
|
|
$this->auth->logout();
|
|
|
$this->success('注销成功');
|