Commit b09006a4 authored by liujiangnan's avatar liujiangnan

feat: 强生弹框

parent f3329b0b
......@@ -96,14 +96,14 @@ export default class NewClass extends middleLayerBase {
version = null;
isDev = null;
async checkVersion() {
const { versionName: onlineVersion, storeList } = await this.getOnlineVersion();
const { forceUpdateVersionName: onlineVersion, forceUpdateStoreList, forceUpdate } = await this.getOnlineVersion();
const nativeVersion = await this.getNativeVersion();
this.version = nativeVersion;
if (onlineVersion != '' && onlineVersion != nativeVersion) {
if (onlineVersion != '' && onlineVersion != nativeVersion && forceUpdate!=0) {
console.log('onlineVersion = ' + onlineVersion);
console.log('nativeVersion = ' + nativeVersion);
(<any>window).courseware.needUpdate('检测到更新', storeList[0]);
(<any>window).courseware.needUpdate('检测到更新', forceUpdateStoreList[0]);
}
}
async getNativeVersion() {
......
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