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

@@ -57,7 +57,7 @@ func GetGroupList() ([]model.Group, error) {
return groupListResponse.Data, nil
}
func (am *actionManager) GetLoginAccountInfo() (*model.LoginAccountInfoResponse, error) {
func GetLoginAccountInfo() (*model.LoginAccountInfoResponse, error) {
fullURL := fmt.Sprintf("http://%s%s", config.ConfigManager.GetConfig().Management.NapcatHttpSrv, constants.GET_LOGIN_INFO)
response, err := http.Post(fullURL, "application/json", nil)