执行后,控制台得到的错误信息如下:
errCode:1003
errMsg:“requestMidasPayment:fail 系统错误”
根据小游戏的文档说明,1003的错误的含义是 :“米大师 Portal 错误”
-------------------------------------------------二次编辑---------------------------------------------------
我重新编辑一下代码:
wx.requestMidasPayment({
mode : ‘game’,
env : 1,
offerId : “*”,
platform : “android”,
buyQuantity : 1,
currencyType : ‘CNY’,
zoneId:“1”,
success : res => {
console.log(“requestMidasPayment success”);
console.log(res)
},
fail : res=> {
console.log(“requestMidasPayment failure”);
console.log(res)
},
complete : res => {
console.log(“requestMidasPayment complete”);
}
});