feat:补充支付订单为空的判断

This commit is contained in:
Max
2023-10-25 17:14:31 +08:00
parent e8f7eca1af
commit 3ba31c46d8
2 changed files with 6 additions and 4 deletions

View File

@@ -110,8 +110,10 @@ public class BillingManager implements PurchasesUpdatedListener {
Log.i(TAG, "billingResult.getResponseCode()==" + billingResult.getResponseCode());
purchaseList.clear();
if (billingResult.getResponseCode() == BillingResponseCode.OK) {
for (Purchase purchase : purchases) {
handlePurchase(purchase);
if (purchases != null) {
for (Purchase purchase : purchases) {
handlePurchase(purchase);
}
}
mBillingUpdatesListener.onPurchasesUpdated(purchaseList);
} else {

View File

@@ -31,8 +31,8 @@ COMPILE_SDK_VERSION=33
MIN_SDK_VERSION=21
TARGET_SDK_VERSION=33
version_name=2.1.0
version_code=2007
version_name=2.1.1
version_code=2110
#systemProp.https.proxyHost=127.0.0.1
#systemProp.https.proxyPort=7890