fix message api

This commit is contained in:
jxxghp
2024-05-11 16:24:25 +08:00
parent 71b0090947
commit 663e61e3a1
4 changed files with 18 additions and 10 deletions

View File

@ -149,7 +149,7 @@ def check_auth():
"""
if SitesHelper().auth_level < 2:
err_msg = "用户认证失败,站点相关功能将无法使用!"
MessageHelper().put(f"注意:{err_msg}")
MessageHelper().put(f"注意:{err_msg}", title="用户认证", role="system")
CommandChian().post_message(
Notification(
mtype=NotificationType.Manual,