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