Browse Source

【内嵌支付】修复“不记得序列码后跳转官网进行序列码查询”

wanjun 6 tháng trước cách đây
mục cha
commit
5f8f07d2ca

+ 5 - 0
PDF Office/PDF Master/Class/Purchase/DMG/KMPurchaseEmbeddedWindowController.swift

@@ -1100,6 +1100,11 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
         }
     }
     
+    @IBAction func notFoundAction(_ sender: NSButton) {
+        var url = URL(string: "https://www.pdfreaderpro.com/mac/license-retrieval")!
+        NSWorkspace.shared.open(url)
+    }
+    
     // MARK: get & set
     
     private var paymentMethod : KMPaymentType {

+ 3 - 0
PDF Office/PDF Master/Class/Purchase/DMG/KMPurchaseEmbeddedWindowController.xib

@@ -479,6 +479,9 @@
                                                     <constraints>
                                                         <constraint firstAttribute="height" constant="20" id="0wq-ge-xp2"/>
                                                     </constraints>
+                                                    <connections>
+                                                        <action selector="notFoundAction:" target="-2" id="b8c-tt-dRZ"/>
+                                                    </connections>
                                                 </button>
                                             </subviews>
                                             <constraints>