Commit 2cb11939 authored by Him188's avatar Him188

Fix build

parent abfc4009
...@@ -24,7 +24,6 @@ import net.mamoe.mirai.message.data.buildXMLMessage ...@@ -24,7 +24,6 @@ import net.mamoe.mirai.message.data.buildXMLMessage
import net.mamoe.mirai.message.data.getValue import net.mamoe.mirai.message.data.getValue
import net.mamoe.mirai.message.sendAsImageTo import net.mamoe.mirai.message.sendAsImageTo
import net.mamoe.mirai.utils.ContextImpl import net.mamoe.mirai.utils.ContextImpl
import net.mamoe.mirai.utils.io.toUHexString
import java.io.File import java.io.File
import java.util.* import java.util.*
import javax.swing.filechooser.FileSystemView import javax.swing.filechooser.FileSystemView
...@@ -132,7 +131,7 @@ suspend fun main() { ...@@ -132,7 +131,7 @@ suspend fun main() {
try { try {
image.downloadTo(newTestTempFile(suffix = ".png").also { reply("Temp file: ${it.absolutePath}") }) image.downloadTo(newTestTempFile(suffix = ".png").also { reply("Temp file: ${it.absolutePath}") })
reply(image.md5.toUHexString() + " downloaded") reply(image.miraiImageId + " downloaded")
} catch (e: Exception) { } catch (e: Exception) {
e.printStackTrace() e.printStackTrace()
reply(e.message ?: e::class.java.simpleName) reply(e.message ?: e::class.java.simpleName)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment