if (channels[i].id === 'appleiap') {
found = true;
that.iap = channels[i];
console.log(' 获取成功:',that.iap);
var ids = ['zuanshichongzhi', 'zuanshiyi','zuanshier','zuanshiershi','zuanshiershiba','zuanshiwushiba','zuanshibashiba'];
that.iap.requestOrder(ids, function(e) {
console.log(' 获取订单信息成功: ' + JSON.stringify(e));
that.products = e;
uni.hideLoading(); // 成功获取后隐藏
}, function(e) {
console.log(' 获取订单信息失败: ' + JSON.stringify(e));
uni.hideLoading();
uni.showModal({
content: '获取订单信息失败!请通过调试信息排查处理'
});
});
}
0 个回复