Skip to content

Commit bc1b0f0

Browse files
author
野松
committed
request update: fix bug
1 parent f120c8c commit bc1b0f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Android/LuaViewSDK/src/com/taobao/luaview/scriptbundle/asynctask/ScriptBundleDownloadTask.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected String doInBackground(String... params) {
5959
String destFilePath = LuaScriptManager.buildScriptBundleFilePath(url);
6060

6161
//check sha256
62-
final String sha256 = params.length > 1 ? params[2] : null;
62+
final String sha256 = params.length > 1 ? params[1] : null;
6363
final byte[] fileData = IOUtil.toBytes(input);
6464
if (sha256 != null && !sha256.equalsIgnoreCase(HexUtil.bytesToHex(EncryptUtil.sha256(fileData)))) {//验证脚本的完整性
6565
return null;

0 commit comments

Comments
 (0)