fix(entry): sha256File 返回值转为 JS 原生字符串,修复 Rhino 中 Java String !== 比较引用导致的 SHA256 误判

This commit is contained in:
linshenjianlu
2026-04-21 09:59:36 +08:00
parent e89eb9a904
commit 7d879527f4

View File

@@ -34,7 +34,7 @@ function sha256File(path) {
if (hex.length() === 1) sb.append("0");
sb.append(hex);
}
return sb.toString();
return String(sb.toString());
} catch (e) {
return null;
}