Parcourir la source

网银支付调整

zhengjinyi il y a 3 ans
Parent
commit
94abf8522f

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

@@ -153,7 +153,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));
-            console.log(_self.payInfo.payMobileUrl);
+            // console.log(_self.payInfo.payMobileUrl);
             var qrcode = new QRCode(document.getElementById("wx_pay_container"), {
                 render: "canvas", //也可以替换为table
                 text: _self.payInfo.payMobileUrl,

+ 2 - 2
src/main/resources/static/js/pay/mixin/hlb_wxMixin.js

@@ -7,7 +7,7 @@ var hlbWechatMixin = function () {
 				var _this = this;
 				var params={
 					payType:'GZH',
-					payAmount:Math.round(_this.payAmount*100),
+					payAmount:Math.round(_this.payAmount),
 					code:_this.wechatcode,
 					state:_this.rand(1000,9999),
 					shopOrderId:_this.shopOrderId,
@@ -77,7 +77,7 @@ var hlbWechatMixin = function () {
 			},
 			hlb_handlResponse:function (response) {
 				var _this = this;
-				if(response.code == 0){
+				if(response.code === 0){
 					var PayInfo = JSON.parse(response.data.rt10_payInfo);
 					if (typeof WeixinJSBridge == "undefined"){
 						if( document.addEventListener ){