ソースを参照

不发短信了。

tanlie 10 時間 前
親
コミット
3fc3bf80bc
1 ファイル変更、5 行追加、5 行削除
  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() ?: '短信发送失败');
     }
 }