refactor: 重构 GetLoginAccountInfo 函数,移除 actionManager 依赖,并更新相关调用;修改 sendAlertMessage 函数为发送合并转发

This commit is contained in:
lixiangwuxian
2025-04-12 01:13:22 +08:00
parent 8af78f8422
commit 46a82e1fef
6 changed files with 45 additions and 78 deletions

View File

@@ -35,7 +35,7 @@ func help(msg model.Message) *model.Reply {
textMsg := message.NewTextMessage()
textMsg.Data.Text = helpInfo
nodeMsg := message.NewNodeMessage()
loginAccountInfo, err := action.ActionManager.GetLoginAccountInfo()
loginAccountInfo, err := action.GetLoginAccountInfo()
if err != nil {
log.Println("GetLoginAccountInfo error:", err)
return nil