mirror of
https://github.com/jie65535/mirai-console-jms-plugin.git
synced 2025-12-15 19:07:33 +08:00
更新到v0.1.1
修复 未查询到数据时提示异常问题 修复 获取玩家头像未显示双层皮肤问题
This commit is contained in:
@@ -76,8 +76,17 @@ object JMSCommand : CompositeCommand(
|
||||
}
|
||||
|
||||
private suspend fun CommandSender.sendImage(data: ByteArray) {
|
||||
data.toExternalResource().use {
|
||||
subject?.sendImage(it)
|
||||
try {
|
||||
if (data.isEmpty()) {
|
||||
subject?.sendMessage("未查询到数据")
|
||||
return
|
||||
}
|
||||
|
||||
data.toExternalResource().use {
|
||||
subject?.sendImage(it)
|
||||
}
|
||||
} catch (e: Throwable) {
|
||||
subject?.sendMessage(String(data))
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user