|
@@ -35,7 +35,7 @@ class MailCaptcha extends BaseService
|
|
|
// 发送限制间隔时间,默认24小时
|
|
|
protected int $safeTime = 86400;
|
|
|
//验证码过期时间
|
|
|
- protected int $expireTime = 300;
|
|
|
+ protected int $expireTime = 900;
|
|
|
//可重复使用次数
|
|
|
protected int $checkTimes = 5;
|
|
|
|
|
@@ -51,6 +51,7 @@ class MailCaptcha extends BaseService
|
|
|
$this->validate($data);
|
|
|
// 执行发送短信
|
|
|
if (!$this->sendCaptcha($data['mobile'])) {
|
|
|
+ $this->error = 'Invalid email address.';
|
|
|
return false;
|
|
|
}
|
|
|
return true;
|
|
@@ -117,7 +118,7 @@ class MailCaptcha extends BaseService
|
|
|
//Content
|
|
|
//$mail->isHTML(true); //Set email format to HTML
|
|
|
$mail->Subject = 'Code';
|
|
|
- $mail->Body = 'Your code is ' . $smsCaptcha . '.Please use it in 15 minutes';
|
|
|
+ $mail->Body = 'Your code is ' . $smsCaptcha . '. Please use it in 15 minutes';
|
|
|
$mail->AltBody = 'This is the Your Code for FreeShippingV';
|
|
|
|
|
|
$mail->send();
|