From 3757a4830a72a826fe181bc2c057b59f9191f520 Mon Sep 17 00:00:00 2001 From: gme_2 Date: Wed, 10 Oct 2018 15:32:51 +0900 Subject: [PATCH] kyc bug fixed --- .../Interactor/KycInteractor.swift | 2 +- .../View/kycForm3ViewController.swift | 31 +++++++++---------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift b/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift index 66d430be..ae056b7c 100644 --- a/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift +++ b/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift @@ -243,7 +243,7 @@ extension KycInteractor: KycInteractorInput { let result3 = self._validate(model: model.kycForm3) let shouldSubmit = result1.isValid && result2.isValid && result3.isValid -// let shouldSubmit = result1.isValid && result2.isValid +// let shouldSubmit = result3.isValid if shouldSubmit { /// call api here. let params = self.getParams(model: model) diff --git a/GMERemittance/Module/New Group/kycForm3/User Interface/View/kycForm3ViewController.swift b/GMERemittance/Module/New Group/kycForm3/User Interface/View/kycForm3ViewController.swift index 7df6db2c..9f9943a0 100644 --- a/GMERemittance/Module/New Group/kycForm3/User Interface/View/kycForm3ViewController.swift +++ b/GMERemittance/Module/New Group/kycForm3/User Interface/View/kycForm3ViewController.swift @@ -15,7 +15,6 @@ enum PictureType: Int { case front case back case passbook - case passport } struct KycForm3FieldKeys { @@ -105,9 +104,9 @@ class KycForm3ViewController: UIViewController { showSample(type: .passbook, titleString: "Passbook") } - @IBAction func passport(_ sender: UIButton) { - showSample(type: .passport, titleString: "Passport") - } +// @IBAction func passport(_ sender: UIButton) { +// showSample(type: .passport, titleString: "Passport") +// } // camera actions @@ -135,11 +134,11 @@ class KycForm3ViewController: UIViewController { self.showPicker() } - @IBAction func passportCamera(_ sender: UIButton) { - self.currentPictureType = .passport - print("passport") - self.showPicker() - } +// @IBAction func passportCamera(_ sender: UIButton) { +// self.currentPictureType = .passport +// print("passport") +// self.showPicker() +// } // submit action @@ -187,8 +186,8 @@ class KycForm3ViewController: UIViewController { image = #imageLiteral(resourceName: "sampleBack") case .passbook: image = #imageLiteral(resourceName: "sampleBack") - case .passport: - image = #imageLiteral(resourceName: "sampleBack") +// case .passport: +// image = #imageLiteral(resourceName: "sampleBack") } // show alert let alertVC = PMAlertController(title: "", description: "", image: image, style: .alert) @@ -255,11 +254,11 @@ extension KycForm3ViewController: ImageCropperDelegate { self.selectedPassbookImage = true self.kycForm3Model.passbookImage = image hideBorder(view: passBookView) - case .passport: - self.passport.setImage(image, for: .normal) - self.selectedPassPortImage = true - self.kycForm3Model.passportImage = image - hideBorder(view: passportView) +// case .passport: +// self.passport.setImage(image, for: .normal) +// self.selectedPassPortImage = true +// self.kycForm3Model.passportImage = image +// hideBorder(view: passportView) } } func didFailedCropWith(error: Error) {