Browse Source

【订阅】loading取消情形完善

lizhe 1 year ago
parent
commit
b699b56a13

+ 1 - 0
PDF Office/PDF Master/Class/KMLightMember/InAppPurchase/DMG/KMDMGPurchaseManager.swift

@@ -15,6 +15,7 @@ class KMDMGPurchaseManager: NSObject {
     
     func purchaseProduct(productIdentifier: String, email: String, completion: KMPurchaseCompletion) {
         NSWorkspace.shared.open(URL(string: "http://test-pdf-pro.kdan.cn:3021/master/checkout?email=\(email)")!)
+        completion(false, .success)
     }
     
     func fetchProducts(completion: @escaping KMPurchaseFetchProductCompletion) {

+ 4 - 0
PDF Office/PDF Master/Class/KMLightMember/InAppPurchase/KMPurchaseManager.swift

@@ -93,6 +93,8 @@ class KMPurchaseManager: NSObject {
                         }
                     }
                 }
+            } else {
+                completion(false, .failed)
             }
         }
 #endif
@@ -121,6 +123,8 @@ class KMPurchaseManager: NSObject {
                         }
                     }
                 }
+            } else {
+                completion(false)
             }
         }
 #endif