Closed Stardust-minus closed 2 years ago
使用Zerobot-Plugin时,无法发送图片。提示插件无法获取到媒体
2022-02-03 20:55:04 V/Bot.2055170746: Group(621868190) <- 少女祈祷中... > 2022-02-03 20:55:04 D/OneBot: 发生了被插件忽略的事件: GroupMessagePostSendEvent(target=Group(621868190), message=少女祈祷中..., exception=null, receipt=net.mamoe.mirai.message.MessageReceipt@45a7d6e6) > 2022-02-03 20:55:04 D/OneBot: WebSocket将返回结果: {"status":"ok","retcode":0,"data":{"ClassType":"MessageData","message_id":1882243262},"echo":97} > 2022-02-03 20:55:06 D/OneBot: WebSocket收到操作请求: {"action":"send_group_msg","params":{"group_id":621868190,"message":[{"type":"image","data":{"file":"file:////HOME/scz0522/run/ZeroBot-Plugin/data/scale/-2069302475"}}]},"echo":98} > 2022-02-03 20:55:06 D/OneBot: 发生了被插件忽略的事件: GroupMessagePreSendEvent(target=Group(621868190), message=插件无法获取到媒体) > 2022-02-03 20:55:06 V/Bot.2055170746: Group(621868190) <- 插件无法获取到媒体 > 2022-02-03 20:55:06 D/OneBot: 发生了被插件忽略的事件: GroupMessagePostSendEvent(target=Group(621868190), message=插件无法获取到媒体, exception=null, receipt=net.mamoe.mirai.message.MessageReceipt@6f511270) > 2022-02-03 20:55:06 D/OneBot: WebSocket将返回结果: {"status":"ok","retcode":0,"data":{"ClassType":"MessageData","message_id":-1801712207},"echo":98}
似乎使用file://的上传图片方式即可复现。
onebot-kotlin- 0.3.5
kotlin
0.3.5
bdcfc2b
mirai-core-2.10-RC
2.10-RC
mirai-console-2.10-RC
是我运行环境的问题,现已解决。
使用Zerobot-Plugin时,无法发送图片。提示插件无法获取到媒体![image](https://user-images.githubusercontent.com/52093397/152337267-da0d88b1-ae15-47fe-a6c9-a5bfee5a1912.png)
复现
似乎使用file://的上传图片方式即可复现。
版本
onebot-
kotlin
-0.3.5
bdcfc2b
mirai-core-
2.10-RC
mirai-console-
2.10-RC