Просмотр исходного кода

【fix】【验证码】DMG,测试黑五时,验证码发送太频繁缺简中

tangchao 5 дней назад
Родитель
Сommit
0ca6199807

+ 2 - 11
PDF Office/PDF Master/MemberCenter/View/KMEnterVerificationCodeView.swift

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