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

添加buildTime

This commit is contained in:
sunnylqm
2019-10-06 21:56:58 +08:00
parent 6eb731b6fb
commit c638cd45ac
9 changed files with 45 additions and 6 deletions

View File

@@ -8,6 +8,7 @@ export const packageVersion = HotUpdate.packageVersion;
export const currentVersion = HotUpdate.currentVersion;
export const isFirstTime = HotUpdate.isFirstTime;
export const isRolledBack = HotUpdate.isRolledBack;
export const buildTime = HotUpdate.buildTime;
/*
Return json:
@@ -49,8 +50,9 @@ export async function checkUpdate(APPKEY) {
'Content-Type': 'application/json',
},
body: JSON.stringify({
packageVersion: packageVersion,
packageVersion,
hash: currentVersion,
buildTime,
}),
});