var postdata =
{
method: 'POST',
uri: 'https://sandbox.itunes.apple.com/verifyReceipt',
multipart:
[
{ 'content-type': 'text/plain; charset=ISO-8859-1',
'body': "{\"receipt-data\":\""+reciept+"\"}"
}
]
};
request(postdata, function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log("bodytostring---"+JSON.stringify(body));
console.log("body---"+body);
callback1(JSON.parse(body));
}
});
但是总是返回21002.有哪位大神指点下
{
method: 'POST',
uri: 'https://sandbox.itunes.apple.com/verifyReceipt',
multipart:
[
{ 'content-type': 'text/plain; charset=ISO-8859-1',
'body': "{\"receipt-data\":\""+reciept+"\"}"
}
]
};
request(postdata, function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log("bodytostring---"+JSON.stringify(body));
console.log("body---"+body);
callback1(JSON.parse(body));
}
});
但是总是返回21002.有哪位大神指点下
本文探讨了使用Node.js向Apple iTunes API发送收据验证请求时遇到的问题。具体表现为无论输入何种收据数据,API始终返回错误代码21002。文章提供了具体的代码示例并寻求解决方案。
1618

被折叠的 条评论
为什么被折叠?



