Selaa lähdekoodia

不发短信了。

tanlie 13 tuntia sitten
vanhempi
säilyke
3fc3bf80bc
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  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() ?: '短信发送失败');
     }
 }