From 60a999f773bc498e2bab77e93533301e00e217ca Mon Sep 17 00:00:00 2001 From: cikiPAD <58922174+cikiPAD@users.noreply.github.com> Date: Mon, 25 Dec 2023 17:55:54 +0800 Subject: [PATCH] Update Lolicon.kt --- src/main/kotlin/command/Lolicon.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/command/Lolicon.kt b/src/main/kotlin/command/Lolicon.kt index 122e00a..19de3e7 100644 --- a/src/main/kotlin/command/Lolicon.kt +++ b/src/main/kotlin/command/Lolicon.kt @@ -685,15 +685,15 @@ object Lolicon : CompositeCommand( val msg: ImageUpdatedEntity? = image as? ImageUpdatedEntity if (msg != null) { - if (msg.getUrls != null) { + if (msg.getUrls() != null) { imageMsgBuilder.add(contact.bot, PlainText(msg.getUrls().getDisplayString()+"")) } for (imageOne in msg.getImages()?.filterNotNull()?: emptyList()) { - val imageSelf:Image = imageOne as? Image + val imageSelf: Image = imageOne as? Image if (imageSelf!= null) { - imageMsgBuilder.add(contact.bot, msg) + imageMsgBuilder.add(contact.bot, imageSelf) } else { imageMsgBuilder.add(contact.bot, PlainText("类型转换失败,非图片类型"))