diff --git a/resources/email/war.tpl b/resources/email/war.tpl new file mode 100755 index 00000000..d5760869 --- /dev/null +++ b/resources/email/war.tpl @@ -0,0 +1,35 @@ +{include file='header.tpl'} + + +
+
+
+
+
+
+
+

+ 重要通知 +

+
+
+
+
+
+
+
+
+

+ {$text} +

+
+
+
+
+ + {include file='footer.tpl'} diff --git a/src/Services/Tg/Hook/Mod/Email.php b/src/Services/Tg/Hook/Mod/Email.php index 39c58b30..416d1c50 100644 --- a/src/Services/Tg/Hook/Mod/Email.php +++ b/src/Services/Tg/Hook/Mod/Email.php @@ -19,16 +19,18 @@ final class Email { $subject = "福云 - 重要通知:域名地址变更!"; -// $content = strip_tags( -// str_replace( -// ['

','

'], -// ['','

'], -// $request->getParam('content') -// ), -// ['br', 'a', 'strong'] -// ); - $content = "主域名fuuu.cloud被封禁,已更换为fuuuu.cloud(多一个u)。"; + + $text = "主域名fuuu.cloud被封禁,已更换为fuuuu.cloud(多一个u)。"; + + $content = strip_tags( + str_replace( + ['

','

'], + ['','

'], + $text + ), + ['br', 'a', 'strong'] + ); // $users = (new User())->where('class', '>=', 0) // ->get();