|
@@ -100,7 +100,7 @@ class MailCaptcha extends BaseService
|
|
|
//echo 'Message has been sent';
|
|
|
} catch (Exception $e) {
|
|
|
//echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
|
|
|
- Log::error(__CLASS__ . ':' . __METHOD__ . $e->getMessage());
|
|
|
+ Log::error(__CLASS__ . ':' . __METHOD__ . $e->getMessage() . '---' . $mail->ErrorInfo);
|
|
|
Log::error(__CLASS__ . ':' . __METHOD__, ['errMsg' => $e->getMessage(), 'mailError' => $mail->ErrorInfo]);
|
|
|
return false;
|
|
|
}
|
|
@@ -198,10 +198,10 @@ class MailCaptcha extends BaseService
|
|
|
// }
|
|
|
}
|
|
|
|
|
|
- public function checkCaptcha( $captchaCode = '', $email = '')
|
|
|
+ public function checkCaptcha($captchaCode = '', $email = '')
|
|
|
{
|
|
|
- $localCode = Cache::get('captchaSMS.'.$email);
|
|
|
- if (empty($localCode) || empty($localCode['code']) || $localCode['code'] != $captchaCode){
|
|
|
+ $localCode = Cache::get('captchaSMS.' . $email);
|
|
|
+ if (empty($localCode) || empty($localCode['code']) || $localCode['code'] != $captchaCode) {
|
|
|
throwError('Sorry,your captcha is invalid');
|
|
|
}
|
|
|
//dd($localCode);
|