From 1d6ac3e022c2cbc7221ad7d5f2f1cf76156e6a00 Mon Sep 17 00:00:00 2001 From: Elysia <1628615876@qq.com> Date: Thu, 6 Jun 2024 12:32:59 +0800 Subject: [PATCH] fix get_image --- .../java/moe/fuqiuluo/shamrock/remote/api/ResourceAction.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/api/ResourceAction.kt b/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/api/ResourceAction.kt index f553edb7..2efc0cc8 100644 --- a/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/api/ResourceAction.kt +++ b/xposed/src/main/java/moe/fuqiuluo/shamrock/remote/api/ResourceAction.kt @@ -21,19 +21,19 @@ private fun formatFileName(file: String): String = file fun Routing.fetchRes() { getOrPost("/get_record") { - val file = formatFileName( fetchGetOrThrow("file") ) + val file = formatFileName( fetchOrThrow("file") ) val format = fetchOrThrow("out_format") call.respondText(GetRecord(file, format), ContentType.Application.Json) } getOrPost("/get_file") { - val file = formatFileName( fetchGetOrThrow("file") ) + val file = formatFileName( fetchOrThrow("file") ) val fileType = fetchOrThrow("file_type") call.respondText(GetFile(file, fileType), ContentType.Application.Json) } getOrPost("/get_image") { - val file = formatFileName( fetchGetOrThrow("file") ) + val file = formatFileName( fetchOrThrow("file") ) call.respondText(GetImage(file), ContentType.Application.Json) }