1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-31 13:23:12 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
tdzl2003
2016-04-05 15:36:05 +08:00
parent 67ed31fe98
commit 1c9fd7dd98
6 changed files with 45 additions and 13 deletions

View File

@@ -60,19 +60,19 @@ export async function downloadUpdate(options) {
return;
}
if (options.diff) {
if (options.diffUrl) {
await HotUpdate.downloadPatchFromPpk({
updateUrl: options.diffUrl,
hashName: options.hash,
originHash: currentVersion,
});
} else if (options.diff) {
} else if (options.pdiffUrl) {
await HotUpdate.downloadPatchFromPackage({
updateUrl: options.pdiffUrl,
hashName: options.hash,
});
} else {
await HotUpdate.downloadPatchFromPackage({
await HotUpdate.downloadUpdate({
updateUrl: options.updateUrl,
hashName: options.hash,
});