Browse Source

注册没有截止

lizhen_gitee 3 months ago
parent
commit
418643832c
2 changed files with 3 additions and 3 deletions
  1. 2 2
      application/api/controller/Sms.php
  2. 1 1
      application/api/controller/User.php

+ 2 - 2
application/api/controller/Sms.php

@@ -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);

+ 1 - 1
application/api/controller/User.php

@@ -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) {