|
@@ -64,9 +64,12 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|
|
UserDefaults.standard.set(count, forKey: "kFirstOpenAppCount")
|
|
|
UserDefaults.standard.synchronize()
|
|
|
|
|
|
- //restore
|
|
|
- KMPurchaseManager.manager.restorePurchases { isSuccess, error in
|
|
|
-
|
|
|
+// //restore
|
|
|
+ if KMInAppPurchaseManager.manager.state == .subscription {
|
|
|
+ debugPrint("是订阅状态 需要restore")
|
|
|
+ KMPurchaseManager.manager.restorePurchases { isSuccess, error in
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|