Browse Source

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

tangchao 3 months ago
parent
commit
b779037053

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

@@ -178,15 +178,7 @@ class KMCloseVerificationWC: NSWindowController {
                     KMCloseApplyWC.shared.showWindow(nil)
                     self?.window?.close()
                 } 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()
             }