fix(email): lock templates to built-in catalog

This commit is contained in:
2026-09-13 20:02:56 +08:00
parent 3f02048bc5
commit 129eb25078
10 changed files with 61 additions and 111 deletions
+2 -25
View File
@@ -40,34 +40,11 @@ trait DomainGroups {
return 'template_1';
}
/**
* 获取邮件事件配置
*
* @param string $event 事件类型,留空返回全部
* @return array 单个事件配置或全部事件数组
*/
public static function get_email_event_config(string $event = ''): array {
return Mail::get_email_event_config($event);
}
/**
* 邮件事件是否启用
*/
public static function is_email_event_enabled(string $event): bool {
return Mail::is_email_event_enabled($event);
}
/**
* 通过邮件事件体系发送邮件
*/
public static function send_event_email(
string $event,
string $to,
string $default_subject,
string $default_content,
array $placeholders = []
): bool {
return Mail::send_event_email($event, $to, $default_subject, $default_content, $placeholders);
public static function send_event_email(string $event, string $to, array $placeholders = []): bool {
return Mail::send_event_email($event, $to, $placeholders);
}
/** 禁封设置 */