project-mirai / mirai-api-http

Mirai HTTP API (console) plugin
GNU Affero General Public License v3.0
1.66k stars 343 forks source link

v2.5.1 发送群消息返回-1 #595

Closed a1043710306 closed 2 years ago

a1043710306 commented 2 years ago

2022-07-22 16:38:36.596 INFO 7804 --- [ scheduling-1] com.example.mirarifox.utils.HttpUtils2 : request info to http://localhost:8080/sendGroupMessage request body:[{"messageChain":[{"faceId":0,"groupId":0,"id":0,"senderId":0,"target":0,"targetId":0,"text":"\n -----本周免费--------\n游戏名:《Killing Floor 2》\n描述:###\n发售商:Tripwire Interactive\n\n原价:¥78.00\n现价:¥19.50\n结束时间:2022-07-28 11:00:00\n\n快去 Epic Game 领取吧~\n-----------------------\n游戏名:《Idle Champions of the Forgotten Realms》\n描述:###\n发售商:Codename Entertainment\n\n原价:0\n现价:0\n结束时间:未知的结束时间\n\n快去 Epic Game 领取吧~\n-----------------------\n","time":0,"type":"Plain"}],"sessionKey":"6HriZP1r","target":"961728969"}] 2022-07-22 16:38:39.616 INFO 7804 --- [ scheduling-1] com.example.mirarifox.utils.HttpUtils2 : in time:3021ms resp:["{\"code\":0,\"msg\":\"success\",\"messageId\":-1}"]

a1043710306 commented 2 years ago

I8@IIV1Q3ON4T0BFXC E T7

ryoii commented 2 years ago

消息发送失败

a1043710306 commented 2 years ago

如何查原因呢

a1043710306 commented 2 years ago

因为转发的图文消息能发成功

ryoii commented 2 years ago

没用原因,发送一张校验过md5的R18图也是同样的状况

a1043710306 commented 2 years ago

意思等就行了?

a1043710306 commented 2 years ago

有没有可能是文案的关系 刚刚我试了下 改文案又能发了

ryoii commented 2 years ago

我只能说,不清楚,这是服务器行为

即使你在客户端转发显示上是发送成功了,但是从其他客户端看是看不到的

明显的特征是 从其它客户端看不到,无法撤回

a1043710306 commented 2 years ago

哦 理解了 谢谢