|
现在我用的是咱们案例提供的test.w 正常访问到了这个api实例 点击chooseWXPay的时候一闪而过 然后就报errMsg : 'chooseWXPay:fail',
'resultStr' : JSON.stringify(res)具体的原因怎么跟踪啊 我把返回信息打印也没有什么有用的信息。附上我的代码
var tradeNo = justep.UUID.createUUID();
var notifyUrl = location.origin;
wxPay.pay({
body : "X5",
mchId : "1483798312",
notifyUrl : notifyUrl,
outTradeNo : tradeNo,
totalFee : "1",
success : function(e) {
alert(JSON.stringify(e))
},
cancel : function(e) {
alert(JSON.stringify(e))
},
fail : function(e) {
alert("接口调用失败");
alert(JSON.stringify(e))
alert("我看看他中间的东西");
}
});
他永远走的都是 fail方法 但是console控制台没有错误信息 是我参数传的有问题么
|
|