请求参数 {"mode":"game","env":0,"offerId":"1450043627","currencyType":"CNY","platform":"android","buyQuantity":60,"zoneId":"1"}
AppID(小程序ID):wx575213de0c6de9c4
opendid :oSPW54gGd_wFLX-Tp1lAFca6LFqA
function upWxPay(csobj,wxcode) {
let arg = {
mode:"game",
env:0,
//env:appEntity.env,
offerId:appEntity.offerId,
currencyType:"CNY",
platform:"android",
buyQuantity:csobj.Fee / 10,
zoneId:"1",
success:function(res){
console.log("paysucc " + JSON.stringify(res))
webAndroidMoneyHasGone(csobj,wxcode)
},
fail:function(res){
//console.log(res)
let objd = {
code:1,
info:res
}
let jsString = JSON.stringify(objd);
SendPayResultMessage(jsString)
webAndroidMoneyHasGone(csobj,wxcode)
console.log("payfail " + JSON.stringify(res))
console.log("payfail " + appEntity.env)
},
complete:function(){
//通知服务器去微信服扣货
},
};
wx.requestMidasPayment(arg);
}
是后台设置的问题。