From 9db1233b44ea2d71da6a0b79644a309a45a5b70c Mon Sep 17 00:00:00 2001 From: Wik-T <812952667@qq.com> Date: Mon, 6 Mar 2023 14:31:17 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E6=AD=A3=E5=BC=8F=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/App.vue b/App.vue index f79cf69..da18809 100644 --- a/App.vue +++ b/App.vue @@ -72,17 +72,17 @@ // #ifdef MP let accountInfo = uni.getAccountInfoSync(); - // if (accountInfo.miniProgram.envVersion == 'develop' || accountInfo.miniProgram.envVersion == 'trial') { - // this.globalData.url = 'https://hsgcs.dctpay.com/crest'; - // this.globalData.v1url = 'https://hsgcs.dctpay.com/v1'; - // this.globalData.orderurl = 'https://hsgcs.dctpay.com/order'; - // this.globalData.userurl = 'https://hsgcs.dctpay.com/user'; - // this.globalData.brestUrl = 'https://hsgcs.dctpay.com/brest'; - // this.globalData.imgUrl = 'https://hsgcs.dctpay.com/filesystem/'; - // this.globalData.imageWxImg = 'https://hsgcs.dctpay.com/filesystem/wxApplets/'; - // this.globalData.imageqrImg = 'https://hsgcs.dctpay.com/filesystem/temporary/'; - // } - if (accountInfo.miniProgram.envVersion == 'develop') { + if (accountInfo.miniProgram.envVersion == 'develop' || accountInfo.miniProgram.envVersion == 'trial') { + this.globalData.url = 'https://hsgcs.dctpay.com/crest'; + this.globalData.v1url = 'https://hsgcs.dctpay.com/v1'; + this.globalData.orderurl = 'https://hsgcs.dctpay.com/order'; + this.globalData.userurl = 'https://hsgcs.dctpay.com/user'; + this.globalData.brestUrl = 'https://hsgcs.dctpay.com/brest'; + this.globalData.imgUrl = 'https://hsgcs.dctpay.com/filesystem/'; + this.globalData.imageWxImg = 'https://hsgcs.dctpay.com/filesystem/wxApplets/'; + this.globalData.imageqrImg = 'https://hsgcs.dctpay.com/filesystem/temporary/'; + } + if (accountInfo.miniProgram.envVersion == 'release') { this.globalData.url = 'https://hsg.dctpay.com/crest'; this.globalData.v1url = 'https://hsg.dctpay.com/v1'; this.globalData.orderurl = 'https://hsg.dctpay.com/order'; @@ -95,23 +95,23 @@ // #endif // #ifdef H5 let that = this; - that.globalData.url = 'https://hsgcs.dctpay.com/crest'; - that.globalData.v1url = 'https://hsgcs.dctpay.com/v1'; - that.globalData.orderurl = 'https://hsgcs.dctpay.com/order'; - that.globalData.userurl = 'https://hsgcs.dctpay.com/user'; - that.globalData.brestUrl = 'https://hsgcs.dctpay.com/brest'; - that.globalData.imgUrl = 'https://hsgcs.dctpay.com/filesystem/'; - that.globalData.imageWxImg = 'https://hsgcs.dctpay.com/filesystem/wxApplets/'; - that.globalData.imageqrImg = 'https://hsgcs.dctpay.com/filesystem/temporary/'; + // that.globalData.url = 'https://hsgcs.dctpay.com/crest'; + // that.globalData.v1url = 'https://hsgcs.dctpay.com/v1'; + // that.globalData.orderurl = 'https://hsgcs.dctpay.com/order'; + // that.globalData.userurl = 'https://hsgcs.dctpay.com/user'; + // that.globalData.brestUrl = 'https://hsgcs.dctpay.com/brest'; + // that.globalData.imgUrl = 'https://hsgcs.dctpay.com/filesystem/'; + // that.globalData.imageWxImg = 'https://hsgcs.dctpay.com/filesystem/wxApplets/'; + // that.globalData.imageqrImg = 'https://hsgcs.dctpay.com/filesystem/temporary/'; - // that.globalData.url = 'https://hsg.dctpay.com/crest'; - // that.globalData.v1url = 'https://hsg.dctpay.com/v1'; - // that.globalData.orderurl = 'https://hsg.dctpay.com/order'; - // that.globalData.userurl = 'https://hsg.dctpay.com/user'; - // that.globalData.brestUrl = 'https://hsg.dctpay.com/brest'; - // that.globalData.imgUrl = 'https://hsg.dctpay.com/filesystem/'; - // that.globalData.imageWxImg = 'https://hsg.dctpay.com/filesystem/wxApplets/'; - // that.globalData.imageqrImg = 'https://hsg.dctpay.com/filesystem/temporary/'; + that.globalData.url = 'https://hsg.dctpay.com/crest'; + that.globalData.v1url = 'https://hsg.dctpay.com/v1'; + that.globalData.orderurl = 'https://hsg.dctpay.com/order'; + that.globalData.userurl = 'https://hsg.dctpay.com/user'; + that.globalData.brestUrl = 'https://hsg.dctpay.com/brest'; + that.globalData.imgUrl = 'https://hsg.dctpay.com/filesystem/'; + that.globalData.imageWxImg = 'https://hsg.dctpay.com/filesystem/wxApplets/'; + that.globalData.imageqrImg = 'https://hsg.dctpay.com/filesystem/temporary/'; uni.getStorage({ key: 'openId', success(e) {