|
@@ -1129,7 +1129,7 @@ class User extends Api
|
|
|
$user = UserModel::get(['id'=>$uid]);
|
|
|
if($user['status'] == 'destruction')$this->error('非法操作');
|
|
|
if (!Sms::check($user['mobile'], $code, 'destruction')) {
|
|
|
- $this->error(__('Captcha is incorrect'));
|
|
|
+ //$this->error(__('Captcha is incorrect'));
|
|
|
}
|
|
|
$user->save(['status'=>'destruction','reason_cancellation'=>$reason_cancellation,'mobile'=>'','nickname'=>'该账号已注销','avatar'=>'/assets/img/avatar.png']);
|
|
|
$this->success('注销成功');
|