|
@@ -60,7 +60,19 @@ class KMEnterVerificationCodeView: KMBaseXibView {
|
|
|
initializeUI()
|
|
|
sendBoxRefresh()
|
|
|
|
|
|
- viewModel.countDown(type: .reset, callback: nil)
|
|
|
+ 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()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
sendBox.moveCallback = { [weak self](mouseEntered: Bool, mouseBox: KMBox) -> Void in
|
|
|
guard let self = self else { return }
|