|
@@ -352,31 +352,6 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
|
|
|
addbox.fillColor = NSColor(named: "0E1114 1") ?? .white
|
|
|
removebox.fillColor = NSColor(named: "0E1114 1") ?? .white
|
|
|
-
|
|
|
- firmLabel.isEditable = false
|
|
|
- firmLabel.isSelectable = true
|
|
|
- firmLabel.allowsEditingTextAttributes = true
|
|
|
- firmLabel.textColor = NSColor.black
|
|
|
- firmLabel.font = NSFont.SFProTextRegularFont(14.0)
|
|
|
- let firmString = NSLocalizedString("If you need to manage seats in PDF Reader Pro, please purchase the %@.", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
- let enterpriseStr = NSLocalizedString("enterprise version", tableName: "MemberCenterLocalizable", comment: "")
|
|
|
- let fireFullString = String(format: firmString, enterpriseStr)
|
|
|
- let firmLinkColor = NSColor(named: "4982E6") ?? NSColor.blue
|
|
|
- let attri = NSMutableAttributedString(string: fireFullString, attributes: [.foregroundColor : firmLinkColor, .font : NSFont.SFProTextRegularFont(14.0)])
|
|
|
- // 定义链接的范围
|
|
|
- let enterpriseRange = (fireFullString as NSString).range(of: enterpriseStr)
|
|
|
- let firmFont = NSFont.SFProTextRegularFont(14.0) // 与普通文本相同的字体
|
|
|
- attri.addAttributes([
|
|
|
- .foregroundColor: NSColor(named: "0E1114") ?? NSColor.black as Any,
|
|
|
- .font: firmFont
|
|
|
- ], range: (fireFullString as NSString).range(of: enterpriseStr))
|
|
|
- attri.addAttributes([
|
|
|
- .foregroundColor: firmLinkColor,
|
|
|
- .link: NSLocalizedString("https://www.pdfreaderpro.com/store/lynxpdfeditor", comment: ""),
|
|
|
- .font: firmFont
|
|
|
- ], range: enterpriseRange)
|
|
|
- firmLabel.attributedStringValue = attri
|
|
|
- firmLabel.isHidden = true
|
|
|
|
|
|
textbox.fillColor = NSColor(named: "0E1114 2") ?? .white
|
|
|
yourOrderLabel.stringValue = NSLocalizedString("Your Order", comment: "")
|
|
@@ -1126,9 +1101,6 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
wechatPayButton.isHidden = false
|
|
|
}
|
|
|
amountTextField1.stringValue = String(pdfCount)
|
|
|
-
|
|
|
- let viewHidden = pdfCount <= 1
|
|
|
- firmLabel.isHidden = viewHidden
|
|
|
}
|
|
|
|
|
|
// 价格刷新
|
|
@@ -1994,7 +1966,6 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
self.scanLabel.stringValue = NSLocalizedString("Scan QR Code with Alipay", comment: "")
|
|
|
self.payTypeImageView.image = NSImage(named: "EmbeddedPayment28")
|
|
|
}
|
|
|
-
|
|
|
let img = self.convertBase64StringToNSImage(base64String: urlPath)
|
|
|
self.qrCodeImageView.image = img
|
|
|
|
|
@@ -2093,7 +2064,6 @@ class KMPurchaseEmbeddedWindowController: NSWindowController {
|
|
|
let requestDic: NSDictionary = dic["result"] as? NSDictionary ?? [:]
|
|
|
let status:String = requestDic["status"] as? String ?? ""
|
|
|
if(status.uppercased() == "COMPLETED") {
|
|
|
- KMPurchaseSuccessWindowController.shared.showWindow(nil)
|
|
|
NotificationCenter.default.post(name: NSNotification.Name(rawValue: "KMIAPSubscriptionLoadedNotification"), object: nil)
|
|
|
self.stopPolling()
|
|
|
|