update item queries
This commit is contained in:
parent
75abf69c5c
commit
39b96c14d1
2 changed files with 8 additions and 4 deletions
6
dashboard-ui/cordova/iap.js
vendored
6
dashboard-ui/cordova/iap.js
vendored
|
@ -140,7 +140,7 @@
|
||||||
|
|
||||||
if (requiresVerification) {
|
if (requiresVerification) {
|
||||||
store.when(id).verified(function (p) {
|
store.when(id).verified(function (p) {
|
||||||
alert('verified');
|
//alert('verified');
|
||||||
updateProductInfo(p);
|
updateProductInfo(p);
|
||||||
p.finish();
|
p.finish();
|
||||||
});
|
});
|
||||||
|
@ -154,6 +154,9 @@
|
||||||
Logger.log('finishing previously created transaction');
|
Logger.log('finishing previously created transaction');
|
||||||
if (requiresVerification) {
|
if (requiresVerification) {
|
||||||
//product.verify();
|
//product.verify();
|
||||||
|
if (product.owned) {
|
||||||
|
alert('sub owned!');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
product.finish();
|
product.finish();
|
||||||
}
|
}
|
||||||
|
@ -201,6 +204,7 @@
|
||||||
|
|
||||||
}).map(function (o) {
|
}).map(function (o) {
|
||||||
|
|
||||||
|
o.id = getStoreFeatureId(o.feature);
|
||||||
o.buttonText = Globalize.translate(o.buttonText, getProduct(o.feature).price);
|
o.buttonText = Globalize.translate(o.buttonText, getProduct(o.feature).price);
|
||||||
return o;
|
return o;
|
||||||
});
|
});
|
||||||
|
|
6
dashboard-ui/cordova/registrationservices.js
vendored
6
dashboard-ui/cordova/registrationservices.js
vendored
|
@ -257,11 +257,11 @@
|
||||||
|
|
||||||
function onProductUpdated(e, product) {
|
function onProductUpdated(e, product) {
|
||||||
|
|
||||||
var deferred = currentDisplayingDeferred;
|
if (product.owned) {
|
||||||
|
|
||||||
if (deferred && product.owned) {
|
var deferred = currentDisplayingDeferred;
|
||||||
|
|
||||||
if (currentDisplayingProductInfos.filter(function (p) {
|
if (deferred && currentDisplayingProductInfos.filter(function (p) {
|
||||||
|
|
||||||
return product.id == p.id;
|
return product.id == p.id;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue