修改原有框架中英文映射

This commit is contained in:
2026-03-17 18:09:10 +08:00
parent e7b8f4cae9
commit bdf50e61f5
81 changed files with 1956 additions and 735 deletions

View File

@@ -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();