|
@@ -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()
|
|
|
}
|