We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 060d74e + bc1b0f0 commit f654bb1Copy full SHA for f654bb1
Android/LuaViewSDK/src/com/taobao/luaview/scriptbundle/asynctask/ScriptBundleDownloadTask.java
@@ -59,7 +59,7 @@ protected String doInBackground(String... params) {
59
String destFilePath = LuaScriptManager.buildScriptBundleFilePath(url);
60
61
//check sha256
62
- final String sha256 = params.length > 1 ? params[2] : null;
+ final String sha256 = params.length > 1 ? params[1] : null;
63
final byte[] fileData = IOUtil.toBytes(input);
64
if (sha256 != null && !sha256.equalsIgnoreCase(HexUtil.bytesToHex(EncryptUtil.sha256(fileData)))) {//验证脚本的完整性
65
return null;
0 commit comments