getProduct(productIds) {
return new Promise((resolve, reject) => {
console.log("获取苹果内购产品" , productIds)
this._channel.requestProduct(productIds, (res) => {
console.log(res)
resolve(res);
}, (err) => {
console.log("获取苹果内购产品-error",err)
reject(err);
})
});
},
获取苹果内购产品-error,
{
"code": 0,
"message": "Payment_appleiap:Error Domain=SKErrorDomain Code=0 \"发生未知错误\" UserInfo={NSLocalizedDescription=发生未知错误, NSUnderlyingError=0x281600f00 {Error Domain=ASDErrorDomain Code=507 \"Error decoding response\" UserInfo={NSLocalizedDescription=Error decoding response, NSLocalizedFailureReason=Could not decode media products response}}},https://ask.dcloud.net.cn/article/282",
"errCode": 0,
"errMsg": "Payment_appleiap:Error Domain=SKErrorDomain Code=0 \"发生未知错误\" UserInfo={NSLocalizedDescription=发生未知错误, NSUnderlyingError=0x281600f00 {Error Domain=ASDErrorDomain Code=507 \"Error decoding response\" UserInfo={NSLocalizedDescription=Error decoding response, NSLocalizedFailureReason=Could not decode media products response}}},https://ask.dcloud.net.cn/article/282"
}
1 个回复
星星不怕黑 (作者)
1.证书协议没得问题