| | |
| | | } |
| | | */ |
| | | DispatchQueue.main.async { [self] in |
| | | let recaptcha = RecaptchaVisual( |
| | | viewController: self, siteKey: WEB_SITE_KEY, baseUrl: URL(string: WEB_BASE_URL)!) |
| | | recaptcha.runCaptcha { (token: String?, error: Error?) in |
| | | guard let token = token else {return} |
| | | self.viewModel.token.accept(token) |
| | | // let recaptcha = RecaptchaVisual( |
| | | // viewController: self, siteKey: WEB_SITE_KEY, baseUrl: URL(string: WEB_BASE_URL)!) |
| | | // recaptcha.runCaptcha { (token: String?, error: Error?) in |
| | | // guard let token = token else {return} |
| | | // self.viewModel.token.accept(token) |
| | | self.viewModel.sendSMSCode(type: 4, kaptcha: "") |
| | | } |
| | | // } |
| | | } |
| | | }).disposed(by: disposeBag) |
| | | |