WIN-2308041133\Administrator 8 months ago
parent
commit
c8e8760912
1 changed files with 6 additions and 6 deletions
  1. 6 6
      application/api/controller/Sms.php

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

@@ -74,7 +74,7 @@ class Sms extends Api
         $mobile = $this->request->request("mobile");
         $mobile = $this->request->request("mobile");
         $event = $this->request->request("event");
         $event = $this->request->request("event");
         $event = $event ? $event : 'register';
         $event = $event ? $event : 'register';
-        $captcha = $this->request->request("captcha");
+//        $captcha = $this->request->request("captcha");
 
 
         if (!$mobile || !\think\Validate::regex($mobile, "^1\d{10}$")) {
         if (!$mobile || !\think\Validate::regex($mobile, "^1\d{10}$")) {
             $this->error(__('手机号不正确'));
             $this->error(__('手机号不正确'));
@@ -92,11 +92,11 @@ class Sms extends Api
                 $this->error(__('未注册'));
                 $this->error(__('未注册'));
             }
             }
         }
         }
-        $ret = Smslib::check($mobile, $captcha, $event);
-        if ($ret) {
+//        $ret = Smslib::check($mobile, $captcha, $event);
+//        if ($ret) {
             $this->success(__('成功'));
             $this->success(__('成功'));
-        } else {
-            $this->error(__('验证码不正确'));
-        }
+//        } else {
+//            $this->error(__('验证码不正确'));
+//        }
     }
     }
 }
 }