diff --git a/home.html b/home.html index cb8dab0..651e357 100644 --- a/home.html +++ b/home.html @@ -83,7 +83,7 @@ - + diff --git a/js/pay.js b/js/pay.js index ff53f4a..d19b97e 100644 --- a/js/pay.js +++ b/js/pay.js @@ -458,15 +458,13 @@ var webAppClass = { //1:有code获取OpenId postRequest(openIdUrl, codeParams, function (res) { - alert('走了微信接口') //alert(JSON.stringify(res)); if (res.code == 0) { - alert('走了微信接口为0') //alert(res.data); webAppClass.getPayParams(res.data, orderID); } else if (res.code == 40163) {//code been used, hints[重复code问题] - alert('走了微信接口不为0') + alertMsg(appState.codeNullTip); console.log(res.message); $btnObj.style.display = "block"; @@ -511,6 +509,9 @@ var webAppClass = { wxParams.openId = openId; wxParams.appId = appWxID; var payParamsUrl = webAppRoot + window.webAppH5.wxPayServer; + alert('调接口之前') + alert(payParamsUrl) + alert(JSON.stringify(wxParams)) //alert(payParamsUrl);alert(orderID); postRequest(payParamsUrl, wxParams, function (res) { alert('走了微信支付接口')