get_record的ws加入单独的md5字段,方便后续get_file拿文件

This commit is contained in:
tuuz 2024-03-18 13:23:20 +08:00
parent 5e819179b4
commit f030104ff2

View File

@ -19,7 +19,7 @@ import java.util.Base64
return invoke(file, fileType, session.echo)
}
operator fun invoke(file: String, fileType: String, echo: JsonElement = EmptyJsonString): String {
operator fun invoke(file: String, fileType: String = "base64", echo: JsonElement = EmptyJsonString): String {
val targetFile = FileUtils.getFileByMd5(file)
return if (targetFile.exists()) {
when (fileType) {