default settings update

This commit is contained in:
True Zhuanjia committed 2026-02-09 09:50:59 +08:00
1 parent 086f1af974
commit 8377b5062a
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -156,7 +156,7 @@ NSString *const deviceName = @"roth";
} }
+ (bool)needUpdateDefaultSettings { + (bool)needUpdateDefaultSettings {
NSString *key = @"needUpdateDefaultSettings20260207"; NSString *key = @"needUpdateDefaultSettings20260209";
BOOL updatedBefore = [[NSUserDefaults standardUserDefaults] boolForKey:key]; BOOL updatedBefore = [[NSUserDefaults standardUserDefaults] boolForKey:key];
if (!updatedBefore) { if (!updatedBefore) {
@@ -1719,6 +1719,8 @@ static NSMutableSet* hostList;
[IAPManager.shared fetchProducts]; [IAPManager.shared fetchProducts];
[self changeDefaultSettings];
/* /*
if (@available(iOS 15.0, *)) { if (@available(iOS 15.0, *)) {
[IAPManager checkPurchaseInfo:AddOnProductPencilProPack completion:^(PurchaseInfo* info) { [IAPManager checkPurchaseInfo:AddOnProductPencilProPack completion:^(PurchaseInfo* info) {