feat: 在 SendForward 函数中添加日志记录以输出回复内容,增强调试能力

This commit is contained in:
lixiangwuxian 2025-04-10 00:50:29 +08:00
parent 04b0b5d754
commit 7d3da26eb2

View File

@ -3,6 +3,7 @@ package action
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"log"
"strconv" "strconv"
"sync" "sync"
"time" "time"
@ -69,6 +70,7 @@ func (am *actionManager) SendMsg(reply *model.Reply) error {
} }
func (am *actionManager) SendForward(reply *model.Reply) error { func (am *actionManager) SendForward(reply *model.Reply) error {
log.Println(reply)
am.sendMtx.Lock() am.sendMtx.Lock()
defer am.sendMtx.Unlock() defer am.sendMtx.Unlock()
userID := strconv.FormatInt(reply.FromMsg.UserId, 10) userID := strconv.FormatInt(reply.FromMsg.UserId, 10)