Commit 7a960ef3 authored by pete谢兆麟's avatar pete谢兆麟

授权成功之后主动匹配

parent 7a76dbee
......@@ -13,6 +13,7 @@ import Lottie
class YHMatchUserViewController: YHBaseViewController {
let viewModel = YHMatchUserViewModel()
var informationAuthorizeViewModel: YHInformationAuthorizeViewModel = YHInformationAuthorizeViewModel()
var needToMatch: Bool = false
lazy var topLabel:UILabel = {
let label = UILabel()
......@@ -96,7 +97,13 @@ class YHMatchUserViewController: YHBaseViewController {
self.bottomBtn.setTitle("AI人脉雷达匹配", for: .normal)
}
}
viewModel.requestUserAuthorization { success, error in }
viewModel.requestUserAuthorization {[weak self] success, error in
guard let self = self else { return }
if self.needToMatch && self.viewModel.setModel.authorization_basic_information == 2 {
self.needToMatch = false
self.didMatchBtnClicked()
}
}
} else {
self.firstImageView.isHidden = false
self.bottomLabel.isHidden = false
......@@ -190,6 +197,7 @@ class YHMatchUserViewController: YHBaseViewController {
YHCommonAlertView.show("", "您暂未开启AI人脉匹配授权", "取消", "去开启") {
} callBack: {
self.needToMatch = true
let vc = YHInformationAuthorizationStepTwoViewController()
vc.stepFlag = false
self.navigationController?.pushViewController(vc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment