|
|
@@ -1,17 +1,8 @@
|
|
|
let v = wx.getAccountInfoSync()
|
|
|
-let appVersion = wx.getStorageSync('appVersion')
|
|
|
let {
|
|
|
envVersion
|
|
|
} = v.miniProgram
|
|
|
-if (appVersion != envVersion) {
|
|
|
- wx.clearStorage({
|
|
|
- success: (res) => {
|
|
|
- wx.setStorageSync('appVersion', envVersion)
|
|
|
- },
|
|
|
- })
|
|
|
-
|
|
|
-}
|
|
|
-let apiUrl = `${envVersion == 'release'?'https://interface.huihenduo.com.cn/hhd-pat/':'https://interface.huihenduo.com.cn/hhd-pat-dev/'}`
|
|
|
+let apiUrl = `${envVersion == 'release'?'https://interface.huihenduo.cc/hhd-ship/':'https://interface.huihenduo.cc/hhd-ship-dev/'}`
|
|
|
|
|
|
function api(url, data, method) {
|
|
|
return new Promise((resolve, reject) => {
|