Commit 929501c1 authored by ryoii's avatar ryoii

fix: imageId parse error

parent 685e552d
...@@ -64,14 +64,14 @@ private fun calculateImageMd5ByImageId(imageId: String): ByteArray { ...@@ -64,14 +64,14 @@ private fun calculateImageMd5ByImageId(imageId: String): ByteArray {
return if (imageId.startsWith('/')) { return if (imageId.startsWith('/')) {
imageId imageId
.drop(1) .drop(1)
.replace('-', ' ') .replace("-", "")
.take(16 * 2) .take(16 * 2)
.chunkedHexToBytes() .chunkedHexToBytes()
} else { } else {
imageId imageId
.substringAfter('{') .substringAfter('{')
.substringBefore('}') .substringBefore('}')
.replace('-', ' ') .replace("-", "")
.chunkedHexToBytes() .chunkedHexToBytes()
} }
} }
......
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