Pārlūkot izejas kodu

【会员系统】DMG 获取商品时机调整为成功获取登录状态之后

zenghong 1 nedēļu atpakaļ
vecāks
revīzija
516e9f2b37
1 mainītis faili ar 9 papildinājumiem un 3 dzēšanām
  1. 9 3
      PDF Office/PDF Master/AppDelegate.swift

+ 9 - 3
PDF Office/PDF Master/AppDelegate.swift

@@ -127,8 +127,17 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate{
                     } else {
                         KMMemberInfo.shared.isLogin = false
                     }
+#if VERSION_DMG
+            let model = KMProductModel()
+            model.getDMGProductDatas()
+#endif
                 }
             }
+        } else {
+#if VERSION_DMG
+            let model = KMProductModel()
+            model.getDMGProductDatas()
+#endif
         }
 
         KMStatusBar.system()
@@ -187,9 +196,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate{
 #if VERSION_DMG
         VerificationManager.default()
         KMDMGProductsManager.shareInstance.getProductDatas()
-        
-        let model = KMProductModel()
-        model.getDMGProductDatas()
 #else
         self.initiVersionData()
         IAPProductsManager.default().initIAP()