Browse Source

【内嵌支付】修复“使用优惠券并应用后,切换支付方式,应用按钮文字应该停留在禁用状态”

wanjun 6 months ago
parent
commit
2a1373b727

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

@@ -916,7 +916,6 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
     @IBAction func payButtonAction(_ sender: NSButton) {
         emailErrorLabel(isReveal: false)
         confirmPayment(isConfirm: false)
-        refreshApplyButton(isReveal: true)
         paymentMethod = KMPaymentType(rawValue: uint32(sender.tag)) ?? .paypal
     }
     
@@ -1738,8 +1737,6 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
             aiAddOnButton1.isEnabled = true
             extendedButton1.isEnabled = true
             couponButton.isEnabled = true
-            coupomTextField.isEnabled = true
-            applyButton.isEnabled = true
             emailTextField.isEnabled = true
             licenseCodeTextField.isEnabled = true
         }