|
@@ -40,10 +40,10 @@ class Captcha extends Controller
|
|
|
*/
|
|
*/
|
|
|
public function sendSmsCaptcha(): Json
|
|
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() ?: '短信发送失败');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|