修改原有框架中英文映射
This commit is contained in:
@@ -26,7 +26,7 @@ class EmailService
|
||||
$logic = new SystemConfigLogic();
|
||||
$config = $logic->getGroup('email_config');
|
||||
if (!$config) {
|
||||
throw new ApiException('未设置邮件配置');
|
||||
throw new ApiException('Mail config not set');
|
||||
}
|
||||
return $config;
|
||||
}
|
||||
@@ -38,7 +38,7 @@ class EmailService
|
||||
public static function getMailer(): PHPMailer
|
||||
{
|
||||
if (!class_exists(PHPMailer::class)) {
|
||||
throw new ApiException('请执行 composer require phpmailer/phpmailer 并重启');
|
||||
throw new ApiException('Please run composer require phpmailer/phpmailer and restart');
|
||||
}
|
||||
$config = static::getConfig();
|
||||
$mailer = new PHPMailer();
|
||||
|
||||
Reference in New Issue
Block a user