[skip ci] fix

This commit is contained in:
Xwite 2023-03-13 13:27:49 +08:00
parent d5dd9df537
commit fc953adb8d

View File

@ -522,7 +522,8 @@ interface JsExtensions : JsEncodeUtils {
*/
fun unArchiveFile(zipPath: String): String {
if (zipPath.isEmpty()) return ""
return ArchiveUtils.deCompress(zipPath).toString()
val zipFile = getFile(zipPath)
return ArchiveUtils.deCompress(zipFile.absolutePath).toString()
.substring(FileUtils.getCachePath().length)
}