fix: 移除 help 函数中不必要的节点消息 ID 设置

This commit is contained in:
lixiangwuxian 2025-04-10 00:42:42 +08:00
parent 169f176192
commit fae490f43e
2 changed files with 0 additions and 3 deletions

View File

@ -3,7 +3,6 @@ package action
import (
"encoding/json"
"fmt"
"log"
"strconv"
"sync"
"time"
@ -82,7 +81,6 @@ func (am *actionManager) SendForward(reply *model.Reply) error {
}
sendPkg := model.GenSendPkg(userID, groupID, reply.ReplyMsg, false, true)
sendPkgJson, err := json.Marshal(sendPkg)
log.Println(string(sendPkgJson))
if err != nil {
return err
}

View File

@ -32,7 +32,6 @@ func help(msg model.Message) *model.Reply {
textMsg := message.NewTextMessage()
textMsg.Data.Text = helpInfo
nodeMsg := message.NewNodeMessage()
nodeMsg.Data.ID = "10086"
nodeMsg.Data.UserID = "123456789"
nodeMsg.Data.Nickname = "test"
nodeMsg.Data.Content = []any{&textMsg}