Selaa lähdekoodia

微信公众号支付域名调整

zhengjinyi 3 vuotta sitten
vanhempi
commit
e313894e6e

+ 1 - 1
src/main/resources/static/js/pay/caimei-code.js

@@ -11,7 +11,7 @@ var payContainer = new Vue({
             var orderInfo = CAIMEI.getUrlParam('orderInfo');
             var wechatPayUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize';
             var appId = 'wx91c4152b60ca91a3';
-            var redirect_uri = 'https://www-b.caimei365.com/pay/wechatpay.html';
+            var redirect_uri = 'https://www.caimei365.com/pay/wechatpay.html';
             var url = wechatPayUrl + '?appid=' + appId + '&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_base&state='+ orderInfo +'#wechat_redirect';
             window.location.href = url;
         }

+ 1 - 1
src/main/resources/static/js/pay/caimei-paymobile.js

@@ -152,7 +152,7 @@ var payContainer = new Vue({
                 };
             }
             // _self.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www-b.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state="+JSON.stringify(orderInfo)+"#wechat_redirect";
-            _self.payInfo.payMobileUrl = 'https://www-b.caimei365.com/wxcode.html?orderInfo='+encodeURIComponent(JSON.stringify(orderInfo));
+            _self.payInfo.payMobileUrl = 'https://www.caimei365.com/wxcode.html?orderInfo='+encodeURIComponent(JSON.stringify(orderInfo));
             // console.log(_self.payInfo.payMobileUrl);
             var qrcode = new QRCode(document.getElementById("wx_pay_container"), {
                 render: "canvas", //也可以替换为table

+ 4 - 4
src/main/resources/static/js/pay/mixin/hlb_payMixin.js

@@ -79,7 +79,7 @@ var hlbPayMixin = function () {// 合利宝支付渠道
 						shopOrderId:_this.payInfo.shopOrderId,
 						payAmount:_this.payAmount
 					};
-					_this.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www-b.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state="+JSON.stringify(orderInfo)+"#wechat_redirect";
+					_this.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state="+JSON.stringify(orderInfo)+"#wechat_redirect";
 					location.href = _this.payInfo.payMobileUrl;
 				}else{
 					_this.payInfo.payData = {//正常订单
@@ -134,7 +134,7 @@ var hlbPayMixin = function () {// 合利宝支付渠道
 						couponId: this.couponId,
 						userId : this.userId
 					};
-					this.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www-b.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state=" + JSON.stringify(orderInfo) + "#wechat_redirect";
+					this.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state=" + JSON.stringify(orderInfo) + "#wechat_redirect";
 					location.href = this.payInfo.payMobileUrl;
 				} else {
 					this.payInfo.payData = {
@@ -259,7 +259,7 @@ var hlbPayMixin = function () {// 合利宝支付渠道
 						vipRecordId: _this.vipRecordId,
 						payAmount: _this.payAmount
 					};
-					_this.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www-b.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state=" + JSON.stringify(orderInfo) + "#wechat_redirect";
+					_this.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state=" + JSON.stringify(orderInfo) + "#wechat_redirect";
 					location.href = _this.payInfo.payMobileUrl;
 				} else {
 					_this.payInfo.payData = {
@@ -339,7 +339,7 @@ var hlbPayMixin = function () {// 合利宝支付渠道
 						productId:_this.productID,
 						payAmount:_this.payAmount
 					};
-					_this.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www-b.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state="+JSON.stringify(orderInfo)+"#wechat_redirect";
+					_this.payInfo.payMobileUrl = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx91c4152b60ca91a3&redirect_uri=https://www.caimei365.com/pay/wechatpay.html&response_type=code&scope=snsapi_base&state="+JSON.stringify(orderInfo)+"#wechat_redirect";
 					location.href = _this.payInfo.payMobileUrl;
 				}else{// PC 跳扫码支付页
 					_this.payInfo.payData = {//二手