fix: 移除 help 函数中不必要的节点消息 ID 设置
This commit is contained in:
parent
169f176192
commit
fae490f43e
@ -3,7 +3,6 @@ package action
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
@ -82,7 +81,6 @@ func (am *actionManager) SendForward(reply *model.Reply) error {
|
|||||||
}
|
}
|
||||||
sendPkg := model.GenSendPkg(userID, groupID, reply.ReplyMsg, false, true)
|
sendPkg := model.GenSendPkg(userID, groupID, reply.ReplyMsg, false, true)
|
||||||
sendPkgJson, err := json.Marshal(sendPkg)
|
sendPkgJson, err := json.Marshal(sendPkg)
|
||||||
log.Println(string(sendPkgJson))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,6 @@ func help(msg model.Message) *model.Reply {
|
|||||||
textMsg := message.NewTextMessage()
|
textMsg := message.NewTextMessage()
|
||||||
textMsg.Data.Text = helpInfo
|
textMsg.Data.Text = helpInfo
|
||||||
nodeMsg := message.NewNodeMessage()
|
nodeMsg := message.NewNodeMessage()
|
||||||
nodeMsg.Data.ID = "10086"
|
|
||||||
nodeMsg.Data.UserID = "123456789"
|
nodeMsg.Data.UserID = "123456789"
|
||||||
nodeMsg.Data.Nickname = "test"
|
nodeMsg.Data.Nickname = "test"
|
||||||
nodeMsg.Data.Content = []any{&textMsg}
|
nodeMsg.Data.Content = []any{&textMsg}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user