1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

add: long message upload log.

This commit is contained in:
Mrs4s 2021-08-16 20:48:38 +08:00
parent fcf135ac88
commit 028326bb67
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -174,11 +174,12 @@ func (c *QQClient) uploadGroupLongMessage(groupCode int64, m *message.ForwardMes
for i, ip := range rsp.Uint32UpIp { for i, ip := range rsp.Uint32UpIp {
err := c.highwayUpload(uint32(ip), int(rsp.Uint32UpPort[i]), rsp.MsgSig, body, 27) err := c.highwayUpload(uint32(ip), int(rsp.Uint32UpPort[i]), rsp.MsgSig, body, 27)
if err != nil { if err != nil {
c.Error("highway upload long message error: %v", err)
continue continue
} }
return genLongTemplate(rsp.MsgResid, m.Brief(), ts) return genLongTemplate(rsp.MsgResid, m.Brief(), ts)
} }
c.Error("upload long message error: highway server list is empty") c.Error("upload long message error: highway server list is empty or not available server.")
return nil return nil
} }