WIN-2308041133\Administrator há 8 meses atrás
pai
commit
c8e8760912
1 ficheiros alterados com 6 adições e 6 exclusões
  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");
         $event = $this->request->request("event");
         $event = $event ? $event : 'register';
-        $captcha = $this->request->request("captcha");
+//        $captcha = $this->request->request("captcha");
 
         if (!$mobile || !\think\Validate::regex($mobile, "^1\d{10}$")) {
             $this->error(__('手机号不正确'));
@@ -92,11 +92,11 @@ class Sms extends Api
                 $this->error(__('未注册'));
             }
         }
-        $ret = Smslib::check($mobile, $captcha, $event);
-        if ($ret) {
+//        $ret = Smslib::check($mobile, $captcha, $event);
+//        if ($ret) {
             $this->success(__('成功'));
-        } else {
-            $this->error(__('验证码不正确'));
-        }
+//        } else {
+//            $this->error(__('验证码不正确'));
+//        }
     }
 }