Explorar o código

不发短信了。

tanlie hai 6 horas
pai
achega
3fc3bf80bc
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      app/api/controller/Captcha.php

+ 5 - 5
app/api/controller/Captcha.php

@@ -40,10 +40,10 @@ class Captcha extends Controller
      */
     public function sendSmsCaptcha(): Json
     {
-        $SmsCaptchaService = new SmsCaptchaService;
-        if ($SmsCaptchaService->handle($this->postForm())) {
-            return $this->renderSuccess('发送成功,请注意查收');
-        }
-        return $this->renderError($SmsCaptchaService->getError() ?: '短信发送失败');
+        //$SmsCaptchaService = new SmsCaptchaService;
+        //if ($SmsCaptchaService->handle($this->postForm())) {
+        return $this->renderSuccess('发送成功,请注意查收');
+        //}
+        //return $this->renderError($SmsCaptchaService->getError() ?: '短信发送失败');
     }
 }