Compare commits

...

2 Commits

@ -16,11 +16,12 @@ onLaunch(async () => {
appId: 'com.chanko.yunxi.mes.android'
}
const res = await appUpdateApi(params)
console.log('1-0', res,res.versionId)
console.log('1-0', res,res.versionId)
plus.runtime.getProperty(plus.runtime.appid, function (wgtinfo) {
const version = wgtinfo.version || plus.runtime.version
console.log('1-1', res.versionId,version)
if (res.versionId != version) {
// manifest.json 1 version 2versionCode
const versionCode = wgtinfo.versionCode || plus.runtime.versionCode
console.log('1-1', res.versionId,versionCode)
if (res.versionId != versionCode) {
uni.showModal({ //
title: '版本更新',
showCancel: false,

@ -3,7 +3,7 @@
"appid" : "__UNI__1AFEDCC",
"description" : "美乐嘉",
"versionName" : "1",
"versionCode" : 1,
"versionCode" : 2,
"transformPx" : false,
/* 5+App */
"app-plus" : {
@ -21,7 +21,9 @@
"delay" : 0
},
/* */
"modules" : {},
"modules" : {
"Camera" : {}
},
/* */
"distribute" : {
/* android */

Loading…
Cancel
Save