瀏覽代碼

【fix】【注销】DMG,注销输入错误验证码,点击下一步,会提示网上错误

tangchao 3 月之前
父節點
當前提交
b779037053
共有 1 個文件被更改,包括 1 次插入9 次删除
  1. 1 9
      PDF Office/PDF Master/MemberCenter/WindowsController/KMCloseVerificationWC.swift

+ 1 - 9
PDF Office/PDF Master/MemberCenter/WindowsController/KMCloseVerificationWC.swift

@@ -178,15 +178,7 @@ class KMCloseVerificationWC: NSWindowController {
                     KMCloseApplyWC.shared.showWindow(nil)
                     KMCloseApplyWC.shared.showWindow(nil)
                     self?.window?.close()
                     self?.window?.close()
                 } else {
                 } else {
-                    if(resultDict != nil) {
-                        let msg = resultDict?.msg ?? NSLocalizedString("Unknown error", comment: "")
-                        let alert = NSAlert()
-                        alert.alertStyle = .critical
-                        alert.messageText = NSLocalizedString("Error Information", comment: "")
-                        alert.informativeText = NSLocalizedString("Please make sure your internet connection is available.", comment: "")
-                        alert.addButton(withTitle: NSLocalizedString("OK", comment: ""))
-                        alert.runModal()
-                    }
+                    KMMemberCenterManager.showAlert(code: .init(rawValue: resultDict?.code ?? 0), message: resultDict?.msg, callback: nil)
                 }
                 }
                 self?.window?.hideWaitingView()
                 self?.window?.hideWaitingView()
             }
             }