|
@@ -144,23 +144,23 @@ onMounted(() => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (os === 'iOS') {
|
|
if (os === 'iOS') {
|
|
|
- plus.httpRequest({
|
|
|
|
|
- url: 'https://itunes.apple.com/lookup?id=1661067556'
|
|
|
|
|
- }).then((res) => {
|
|
|
|
|
- const results = res.data.results
|
|
|
|
|
- if (results?.length) {
|
|
|
|
|
- const { version, trackViewUrl } = results[0]
|
|
|
|
|
- if (versionToNumber(version) > versionToNumber(currentVersion)) {
|
|
|
|
|
- dialog({
|
|
|
|
|
- message: '发现新版本,是否更新?',
|
|
|
|
|
- showCancelButton: true,
|
|
|
|
|
- confirmButtonText: '更新'
|
|
|
|
|
- }).then(() => {
|
|
|
|
|
- plus.openURL(trackViewUrl)
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ // plus.httpRequest({
|
|
|
|
|
+ // url: 'https://itunes.apple.com/lookup?id=1661067556'
|
|
|
|
|
+ // }).then((res) => {
|
|
|
|
|
+ // const results = res.data.results
|
|
|
|
|
+ // if (results?.length) {
|
|
|
|
|
+ // const { version, trackViewUrl } = results[0]
|
|
|
|
|
+ // if (versionToNumber(version) > versionToNumber(currentVersion)) {
|
|
|
|
|
+ // dialog({
|
|
|
|
|
+ // message: '发现新版本,是否更新?',
|
|
|
|
|
+ // showCancelButton: true,
|
|
|
|
|
+ // confirmButtonText: '更新'
|
|
|
|
|
+ // }).then(() => {
|
|
|
|
|
+ // plus.openURL(trackViewUrl)
|
|
|
|
|
+ // })
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
|
|
+ // })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|