|
@@ -207,7 +207,7 @@ class CodeViewController: ADHBaseVC {
|
|
|
self.viewModel.registeredAccountModel.captchaCode = "\(textF1.text ?? "")\(textF2.text ?? "")\(textF3.text ?? "")\(textF4.text ?? "")\(textF5.text ?? "")\(textF6.text ?? "")"
|
|
|
|
|
|
self.viewModel.registeredAccountModel.captchaId = self.codeDetail.id
|
|
|
-
|
|
|
+ self.hud.showLoading()
|
|
|
self.viewModel.signalRegisteredAccount()?.on(success: { dd in
|
|
|
for temp in self.navigationController!.viewControllers {
|
|
|
if temp.isKind(of: TCLogingViewController.self){
|
|
@@ -229,7 +229,7 @@ class CodeViewController: ADHBaseVC {
|
|
|
self.viewModel.phoneNumLoginModel.captchaCode = "\(textF1.text ?? "")\(textF2.text ?? "")\(textF3.text ?? "")\(textF4.text ?? "")\(textF5.text ?? "")\(textF6.text ?? "")"
|
|
|
|
|
|
self.viewModel.phoneNumLoginModel.captchaId = self.codeDetail.id
|
|
|
-
|
|
|
+ self.hud.showLoading()
|
|
|
self.viewModel.signalPhoneSMSLogin()?.on(success: { dd in
|
|
|
|
|
|
Defaults[\.UserToken] = self.viewModel.UserDetailM?.access_token
|
|
@@ -256,12 +256,12 @@ class CodeViewController: ADHBaseVC {
|
|
|
|
|
|
let keyWindow = UIApplication.shared.keyWindow
|
|
|
|
|
|
- if Defaults[\.isSetPayPassword] === 0{
|
|
|
- let loginVC = EditPayPSWViewController()
|
|
|
- loginVC.phone = Defaults[\.UserPhone]
|
|
|
- keyWindow?.rootViewController = loginVC
|
|
|
- return
|
|
|
- }
|
|
|
+// if Defaults[\.isSetPayPassword] === 0{
|
|
|
+// let loginVC = EditPayPSWViewController()
|
|
|
+// loginVC.phone = Defaults[\.UserPhone]
|
|
|
+// keyWindow?.rootViewController = loginVC
|
|
|
+// return
|
|
|
+// }
|
|
|
|
|
|
let tabVC = BaseTabbarController()
|
|
|
tabVC.setupChildControllers()
|