Commit 305c634e authored by liujiangnan's avatar liujiangnan

feat: 强制更新

parent 4f6710c8
......@@ -108,14 +108,14 @@ export default class NewClass extends middleLayerBase {
type = null;
engine_uuid = null;
async checkVersion() {
const { versionName: onlineVersion, storeList, forceUpdate } = await this.getOnlineVersion();
const { forceUpdateVersionName: onlineVersion, forceUpdateStoreList, forceUpdate } = await this.getOnlineVersion();
const nativeVersion = await this.getNativeVersion();
this.version = nativeVersion;
if (onlineVersion != '' && onlineVersion != nativeVersion && forceUpdate!=0 && this.type!='aixuebao') {
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