|
@@ -62,17 +62,8 @@ class KMEnterVerificationCodeView: KMBaseXibView {
|
|
|
|
|
|
viewModel.countDown(type: .reset) { result , params in
|
|
|
if let data = params.first as? KMMemberCenterResult {
|
|
|
- if data.code == KMMemberCenterErrorCodeType.VERIFY_CODE_SEND_TOO_QUICKLY.rawValue {
|
|
|
- KMMainThreadExecute {
|
|
|
- let alert = NSAlert()
|
|
|
- let message = data.msg ?? KMMemberCenterManager.typeOfMessage(type: .VERIFY_CODE_SEND_TOO_QUICKLY)
|
|
|
- alert.messageText = NSLocalizedString(message, comment: "")
|
|
|
- alert.runModal()
|
|
|
- }
|
|
|
- } else {
|
|
|
- if result == false {
|
|
|
- KMMemberCenterManager.showAlert(code: .init(rawValue: data.code), message: data.msg, callback: nil)
|
|
|
- }
|
|
|
+ if result == false {
|
|
|
+ KMMemberCenterManager.showAlert(code: .init(rawValue: data.code), message: data.msg, callback: nil)
|
|
|
}
|
|
|
}
|
|
|
|