From 45176658f105c98e3a636e74faee562c147d5578 Mon Sep 17 00:00:00 2001 From: qiuguohua Date: Thu, 28 Nov 2024 19:39:07 +0800 Subject: [PATCH] Fix name typo --- native/CMakeLists.txt | 2 +- .../java/vendor/google/billing/GoogleBillingHelper.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/native/CMakeLists.txt b/native/CMakeLists.txt index b001e9cdba7..2cbbd620e44 100644 --- a/native/CMakeLists.txt +++ b/native/CMakeLists.txt @@ -3146,7 +3146,7 @@ function(cc_apply_definations target) $<$:SCRIPT_ENGINE_TYPE=5> $<$:SCRIPT_ENGINE_TYPE=6> $<$,$>:CC_DEBUG=1> - $,CC_USE_APDF=1,CC_USE_USE_APDF=0> + $,CC_USE_APDF=1,CC_USE_APDF=0> $,CC_USE_GOOGLE_BILLING=1,CC_USE_GOOGLE_BILLING=0> ) endfunction() diff --git a/native/cocos/platform/android/java/vendor/google/billing/GoogleBillingHelper.java b/native/cocos/platform/android/java/vendor/google/billing/GoogleBillingHelper.java index 3351911858f..2cef42b49e2 100644 --- a/native/cocos/platform/android/java/vendor/google/billing/GoogleBillingHelper.java +++ b/native/cocos/platform/android/java/vendor/google/billing/GoogleBillingHelper.java @@ -74,11 +74,11 @@ public static GoogleBilling getInstance() { } public static void removeProductDetails(int productDetailsID) { - instance.removeProductDetails(productDetailsID); + getInstance().removeProductDetails(productDetailsID); } public static void removePurchase(int purchaseID) { - instance.removeProductDetails(purchaseID); + getInstance().removeProductDetails(purchaseID); } public static void startConnection() {