Browse Source

国际短信

lizhen_gitee 1 year ago
parent
commit
fd4524223d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Sms.php

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

@@ -41,7 +41,7 @@ class Sms extends Api
         $event = input("event",'default');
         $event = $event ? $event : 'register';
 
-        if (!$mobile || !\think\Validate::regex($mobile, "^1\d{10}$")) {
+        if (!$mobile) {
             $this->error(__('手机号不正确'));
         }
         $last = Smslib::get($mobile, $event);