bug修复
This commit is contained in:
parent
5cfa7a050b
commit
4cc846aea9
|
|
@ -10,7 +10,7 @@ class HttpConfig {
|
||||||
// baseUrl = "http://112.29.103.165:21626"
|
// baseUrl = "http://112.29.103.165:21626"
|
||||||
// baseUrl = "http://172.20.10.3:8080"
|
// baseUrl = "http://172.20.10.3:8080"
|
||||||
// baseUrl = "http://10.40.92.8:8080"
|
// baseUrl = "http://10.40.92.8:8080"
|
||||||
// baseUrl = "http://10.40.92.52:28080"
|
// baseUrl = "http://192.168.0.96:28080"
|
||||||
// baseUrl = "http://10.40.92.78:28080"
|
// baseUrl = "http://10.40.92.78:28080"
|
||||||
// baseUrl = "http://192.168.2.127:28080"
|
// baseUrl = "http://192.168.2.127:28080"
|
||||||
// baseUrl = "https://z.csgmall.com.cn/gl"
|
// baseUrl = "https://z.csgmall.com.cn/gl"
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ class Http{
|
||||||
method:"GET",
|
method:"GET",
|
||||||
dataType:'json',
|
dataType:'json',
|
||||||
header:{
|
header:{
|
||||||
'content-type':'application/json',
|
// 'content-type':'application/json',
|
||||||
'Authorization': uni.getStorageSync('token'),
|
'Authorization': uni.getStorageSync('token'),
|
||||||
...header
|
...header
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -352,7 +352,7 @@
|
||||||
this.$api.update
|
this.$api.update
|
||||||
.fetchAppVer()
|
.fetchAppVer()
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
console.log(res);
|
console.log('🚀 ~ .then ~ res -版本检查:', res)
|
||||||
if (res.data.code == 200) {
|
if (res.data.code == 200) {
|
||||||
serveVer = res.data.data[0].versionName.replace(
|
serveVer = res.data.data[0].versionName.replace(
|
||||||
/\./g,
|
/\./g,
|
||||||
|
|
@ -361,7 +361,7 @@
|
||||||
apkPath = res.data.data[0].apkPath;
|
apkPath = res.data.data[0].apkPath;
|
||||||
// 比较版本大小
|
// 比较版本大小
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log(nowVer, serveVer, apkPath);
|
console.log(nowVer, serveVer, apkPath, '--->>> 版本检查');
|
||||||
if (nowVer < serveVer) {
|
if (nowVer < serveVer) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: "版本升级",
|
title: "版本升级",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue