From f4f75647bdd89574c5bd425379f5ecb6232dcc60 Mon Sep 17 00:00:00 2001 From: mo-bai <1873032855@qq.com> Date: Wed, 13 Apr 2022 14:29:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 7 ++++++- env/index.js | 4 ++-- manifest.json | 5 +++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/App.vue b/App.vue index 5c965ae..a358f8d 100644 --- a/App.vue +++ b/App.vue @@ -22,7 +22,12 @@ export default { //#ifdef APP-PLUS checkUpdate().then((version) => { let curVersion = plus.runtime.version - if (version != curVersion) { + if (!version) { + version = curVersion + } + let curVersionNum = curVersion.split('.').join('') - 0 || 100 + let versionNum = version.split('.').join('') - 0 || 100 + if (curVersionNum < versionNum) { let client = uni.getSystemInfoSync().platform if (client === 'ios') { uni.showModal({ diff --git a/env/index.js b/env/index.js index a0bfcb1..bcf6a22 100644 --- a/env/index.js +++ b/env/index.js @@ -1,8 +1,8 @@ /** * @description 唯一环境变量 */ -const env = 'test' +// const env = 'test' // const env = 'dev' -// const env = 'production' +const env = 'production' export default env diff --git a/manifest.json b/manifest.json index 076d312..4fd6245 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "name" : "纸掌柜", "appid" : "__UNI__8C1E198", "description" : "", - "versionName" : "1.0.4", + "versionName" : "1.0.5", "versionCode" : 100, "transformPx" : false, "networkTimeout" : { @@ -69,7 +69,8 @@ "NSLocationWhenInUseUsageDescription" : "该应用需要你的地理位置,以便为你提供当前位置附近印包厂信息", "NSLocationAlwaysUsageDescription" : "该应用需要你的地理位置,以便为你提供当前位置附近印包厂信息", "NSLocationAlwaysAndWhenInUseUsageDescription" : "该应用需要你的地理位置,以便为你提供当前位置附近印包厂信息" - } + }, + "idfa" : false }, /* SDK配置 */ "sdkConfigs" : {