Commit 3e3d57f5 by 朱建香

修改更新组件bug

parent 3ffc8ac0
......@@ -133,7 +133,7 @@
let data = uPublic.checkResponseData(response.data);
if(data){
//检查资源包的更新
checkWgtuUpdate(self, data.package, productId);
checkWgtuUpdate(self, data, productId);
}else{
//无资源更新,使用默认版本
openDefaultIndex();
......@@ -158,7 +158,7 @@
}
}
}
let update = new CheckUpdate().checkWgtuVersion(data.min, data.now, nowVersion);
let update = new CheckUpdate().checkWgtuVersion(data.package.min, data.package.now, nowVersion);
switch(update.wgtu){
case 2:
//必须更新资源包
......@@ -169,7 +169,7 @@
console.log("必须更新app");
updateApp(self);
}else{
downloadWgtu(self, productId, data.now.download, data.now.ver, data.product.name);
downloadWgtu(self, productId, data.package.now.download, data.package.now.ver, data.product.name);
}
break;
case 1:
......@@ -187,7 +187,7 @@
console.log("必须更新app");
updateApp(self);
}else{
downloadWgtu(self, productId, data.now.download, data.now.ver, data.product.name);
downloadWgtu(self, productId, data.package.now.download, data.package.now.ver, data.product.name);
}
}}
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment