fix(notif): 修复通用调度脚本邮件信息丢失bug

This commit is contained in:
Alirea
2025-09-27 19:08:40 +08:00
parent 8ce747a839
commit 1c97228bc0
2 changed files with 7 additions and 7 deletions

View File

@@ -695,7 +695,7 @@ class GeneralManager:
)
if len(result["failed_user"]) > 0:
result_text += (
f"{self.mode}未成功的用户: \n{"\n".join(result['failed_user'])}\n"
f"{self.mode} 未成功的用户: \n{"\n".join(result['failed_user'])}\n"
)
if len(result["waiting_user"]) > 0:
result_text += f"\n未开始{self.mode}的用户: \n{"\n".join(result['waiting_user'])}\n"

View File

@@ -166,16 +166,16 @@
</div>
<div class="content">
<p><strong>代理信息:</strong>{{ sub_info }}</p>
<p><strong>代理信息:</strong>{{ user_info }}</p>
<p><strong>开始时间:</strong>{{ start_time }}</p>
<p><strong>结束时间:</strong>{{ end_time }}</p>
<p><strong>执行结果:</strong>
{% if sub_result == '代理成功' %}
<span class="greenhighlight">{{ sub_result }}</span>
{% elif sub_result == '代理失败' %}
<span class="redhighlight">{{ sub_result }}</span>
{% if user_result == '代理成功' %}
<span class="greenhighlight">{{ user_result }}</span>
{% elif user_result == '代理失败' %}
<span class="redhighlight">{{ user_result }}</span>
{% else %}
{{ sub_result }}
{{ user_result }}
{% endif %}
</p>