_appleiap.requestPayment({
productid: activeProduct.type_trade_code,
manualFinishTransaction: true,
username: store.state.user.user_id //根据业务需求透传参数,关联用户和订单关系
});
对应的requestPayment函数是:
requestPayment(orderInfo: any) {
return new Promise((resolve, reject) => {
uni.requestPayment({
provider: "appleiap",
orderInfo: orderInfo,
success: (res) => {
resolve(res);
},
fail: (err) => {
reject(err);
}
});
});
}
2 个回复
wwwzzz (作者)
崩溃日志如下
wwwzzz (作者)
username的类型传错了,18.2之前的版本没问题所以一直没发现,改成string就好了