@@ -51,10 +51,10 @@ class Sms extends Api
$this->error(__('发送频繁,请稍后再试'));
}
- $userinfo = User::getByMobile($mobile);
+ /*$userinfo = User::getByMobile($mobile);
if (!$userinfo) {
$this->error('您的手机号未注册');
- }
+ }*/
if ($event) {
$userinfo = User::getByMobile($mobile);
@@ -62,7 +62,7 @@ class User extends Api
//如果已经有账号则直接登录
$ret = $this->auth->direct($user->id);
} else {
- $this->error('注册已截止');
+ //$this->error('注册已截止');
$ret = $this->auth->register('', '', '', $mobile, []);
if ($ret) {