fix(entry): sha256File 返回值转为 JS 原生字符串,修复 Rhino 中 Java String !== 比较引用导致的 SHA256 误判
This commit is contained in:
@@ -34,7 +34,7 @@ function sha256File(path) {
|
|||||||
if (hex.length() === 1) sb.append("0");
|
if (hex.length() === 1) sb.append("0");
|
||||||
sb.append(hex);
|
sb.append(hex);
|
||||||
}
|
}
|
||||||
return sb.toString();
|
return String(sb.toString());
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user