function restoreComplateRequest() {
if(appleIap){
console.log("restoreComplateRequest 有appleIap");
appleIap.restoreComplateRequest({}, function(results) {
console.log("results");
console.log(results);
});
}else{
plus.payment.getChannels(function(channels) {
for (var i in channels) {
var channel = channels[i];
if (channel.id === 'appleiap') {
appleIap = channel;
console.log(appleIap);
console.log(appleIap.restoreComplateRequest);
appleIap.restoreComplateRequest({}, function(results) {
console.log(results);
} );
}
}
}, function(e) {});
}
}
1 个回复
流云决 (作者)
bugbugbugbugbugbugbugbugbugbug