Przeglądaj źródła

测试邮件发送

zhangdehua 9 miesięcy temu
rodzic
commit
c8e1d96255

+ 3 - 3
app/index/controller/Captcha.php

@@ -56,11 +56,11 @@ class Captcha extends Controller
     }
 
     /**
-     * 发送邮箱验证码
+     * 发送邮箱验证码Umail
      * @return Json
      * @throws BaseException
      */
-    public function sendEmailCaptcha(): Json
+    public function sendEmailCaptchaUmail(): Json
     {
         $data = $this->postForm();
         $email = $data['mobile'] ?? '';
@@ -122,7 +122,7 @@ class Captcha extends Controller
      * @return Json
      * @throws BaseException
      */
-    public function sendEmailCaptchaSm(): Json
+    public function sendEmailCaptcha(): Json
     {
         $data = $this->postForm();
         $email = $data['mobile'] ?? '';

+ 1 - 1
app/index/service/passport/MailCaptcha.php

@@ -116,7 +116,7 @@ class MailCaptcha extends BaseService
 
             //Content
             //$mail->isHTML(true);                                  //Set email format to HTML
-            $mail->Subject = 'Password';
+            $mail->Subject = 'Code';
             $mail->Body = 'Your code is ' . $smsCaptcha . '.Please use it in 15 minutes';
             $mail->AltBody = 'This is the Your Code for FreeShippingV';