Browse Source

【订阅】转档文案调整,转档未登录逻辑调整

lizhe 1 year ago
parent
commit
3453835b72

+ 12 - 3
PDF Office/PDF Master/Class/KMLightMember/Controller/SubscriptionView/WaterMark/KMSubscribeWaterMarkWindowController.swift

@@ -125,7 +125,12 @@ class KMSubscribeWaterMarkWindowController: NSWindowController {
             }
             
             subscribeWaterMarkWindowController.watermarkExportAction = { controller in
-                completion(false, true, false)
+                if type.isConvertType() && !KMLightMemberManager.manager.isLogin() {
+                    completion(false, false, true)
+                } else {
+                    completion(false, true, false)
+                }
+                
                 subscribeWaterMarkMainWindow?.endSheet(controller.window!)
                 controller.window?.close()
                 subscribeWaterMarkController = nil
@@ -153,9 +158,13 @@ class KMSubscribeWaterMarkWindowController: NSWindowController {
                 subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Save with Watermark", comment: "")
             } else {
                 if type == .merge {
-                    subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Delete from the file list.", comment: "")
+                    subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Delete From the File List", comment: "")
                 } else if type.isConvertType() {
-                    subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Convert First 10 Pages", comment: "")
+                    if KMLightMemberManager.manager.isLogin() {
+                        subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Convert First 10 Pages", comment: "")
+                    } else {
+                        subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Cancel", comment: "")
+                    }
                 } else {
                     subscribeWaterMarkWindowController.waterMarkView.waterExportButton.title = NSLocalizedString("Save with Watermark", comment: "")
                 }

+ 1 - 1
PDF Office/PDF Master/Strings/en.lproj/Localizable.strings

@@ -743,7 +743,7 @@
 "On upgrading your account, you can enjoy all AI features in PDF Master."     =     "On upgrading your account, you can enjoy all AI features in PDF Master.";
 "OK"     =     "OK";
 "The trial version can convert only 2 files at a time."     =     "The trial version can convert only 2 files at a time.";
-"Delete from the file list."     =     "Delete from the file list.";
+"Delete From the File List"     =     "Delete From the File List";
 "Save and Continue" = "Save and Continue";
 "This is a trial version. While saving, PDF Master's watermark will be added to the document." = "This is a trial version. While saving, PDF Master's watermark will be added to the document.";
 "Merge 2 files at a time" = "Merge 2 files at a time";