feat: 在 SendForward 函数中添加日志记录以输出回复内容,增强调试能力
This commit is contained in:
parent
04b0b5d754
commit
7d3da26eb2
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user