소스 검색

【fix】【what‘s new弹窗】Appstore,测量-点击立即体验,应当跳转比较表

tangchao 6 달 전
부모
커밋
cb8bbb3a5b
1개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      PDF Office/PDF Master/Class/GuideInfo/KMCouponDueWindowController.swift

+ 6 - 3
PDF Office/PDF Master/Class/GuideInfo/KMCouponDueWindowController.swift

@@ -100,13 +100,16 @@ class KMCouponDueWindowController: NSWindowController {
             return
         }
         
-//        let newURL = NSURL(string: string+"&coupon_code="+self.couponCode)
-//
-//        NSWorkspace.shared.open(newURL! as URL)
+
+#if VERSION_DMG
         let embeddedWC = KMPurchaseEmbeddedWindowController.currentFirstTrialWC("com.brother.pdfreaderpro.mac.product_3")
         embeddedWC.couponCode = self.couponCode
         embeddedWC.showWindow(nil)
         embeddedWC.window?.center()
+#else
+        let newURL = NSURL(string: string+"&coupon_code="+self.couponCode)
+        NSWorkspace.shared.open(newURL! as URL)
+#endif
         
         FMTrackEventManager.defaultManager.trackEvent(event: "PUW", withProperties: ["PUW_Btn" : "Btn_PUW_TrialExpireOffer_Buy"])
     }