feat: 在 SendForward 函数中添加日志记录以输出发送的消息包内容

This commit is contained in:
lixiangwuxian 2025-04-10 00:30:24 +08:00
parent 6b43a7bb4e
commit 09b4edf387

View File

@ -3,6 +3,7 @@ package action
import (
"encoding/json"
"fmt"
"log"
"sync"
"time"
@ -64,6 +65,7 @@ func (am *actionManager) SendForward(reply *model.Reply) error {
defer am.sendMtx.Unlock()
sendPkg := model.GenSendPkg(reply.FromMsg.UserId, reply.FromMsg.GroupInfo.GroupId, reply.ReplyMsg, false, true)
sendPkgJson, err := json.Marshal(sendPkg)
log.Println(string(sendPkgJson))
if err != nil {
return err
}