@ives_xxz/framework 1.0.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24,7 +24,7 @@ export default class FWHotUpdateManager extends FWManager implements FW.HotUpdat
|
|
|
24
24
|
FWLog.debug('开始热更新流程');
|
|
25
25
|
this.localManifest = localManifest;
|
|
26
26
|
this.storePath = `${jsb.fileUtils ? jsb.fileUtils.getWritablePath() : '/'}${TEMOTE_ASSET}`;
|
|
27
|
-
this.assetMgr = new jsb.AssetsManager('', this.storePath, this.versionCompareHandle);
|
|
27
|
+
this.assetMgr = new jsb.AssetsManager('', this.storePath, this.versionCompareHandle.bind(this));
|
|
28
28
|
this.assetMgr.setVerifyCallback(function (path: string, asset: any) {
|
|
29
29
|
const compressed = asset.compressed;
|
|
30
30
|
const expectedMD5 = asset.md5;
|