huazhiyu_new
lqmac 1 year ago
parent 6b7b23618f
commit c0c243af0e
  1. 10
      application/api/controller/User.php

@ -286,6 +286,16 @@ class User extends Api
if (isset($params['avatar']) && $params['avatar']) {
$upData['avatar'] = $params['avatar'];
}
if ((isset($params['bank_realname']) && $params['bank_realname'] ) || (isset($params['wechat_image']) && $params['wechat_image']) || (isset($params['alipay_image']) && $params['alipay_image'])) {
if (isset($params['code']) && $params['code']) {
$user = $this->auth->getUserinfo();
$ret = Sms::check($user['mobile'], $params['code'], 'notice');
if (!$ret) {
$this->error(__('Captcha is incorrect'));
}
}
}
if (!$upData) {
$this->success();
}

Loading…
Cancel
Save