|
@@ -132,8 +132,6 @@ class SmsService extends NoticeService
|
|
|
{
|
|
|
$config = Config::get('sms_email');
|
|
|
$content = '您的验证码:'.$data['code'];
|
|
|
- print_r($config);
|
|
|
- print_r($config['username']);
|
|
|
|
|
|
// 实例化PHPMailer核心类
|
|
|
$mail = new PHPMailer(true);
|
|
@@ -180,8 +178,6 @@ class SmsService extends NoticeService
|
|
|
$mail->send();
|
|
|
return true;
|
|
|
} catch (Exception $e) {
|
|
|
- print_r($e);
|
|
|
- exit;
|
|
|
throw new ApiException('邮件发送失败: ', $mail->ErrorInfo);
|
|
|
}
|
|
|
}
|