Update ShareCode.kt

This commit is contained in:
Evan You
2025-04-27 11:32:47 +08:00
parent a9fc7bc5a2
commit 6878ba0201

View File

@@ -59,7 +59,7 @@ private val encodeMap = run {
fun MixShareInfo.shareCode(useShortCode: Boolean): String {
if (useShortCode) {
return "mf://${encodeHex(this.toString())}${
this.toString().substring(0, 8)
this.toString().take(8)
}"
}
return "mf://$this"