Commit 22af9f93 authored by Steven杜宇's avatar Steven杜宇

// 重新匹配

parent 617e2179
......@@ -10,7 +10,7 @@ import UIKit
import DragCardContainer
protocol YHMatchProtocol: NSObjectProtocol {
func didMatchBtnClicked()
func rematchUsers()
}
class YHMatchResultListViewController: YHBaseViewController {
......@@ -199,7 +199,7 @@ class YHMatchResultListViewController: YHBaseViewController {
@objc func didRematchBtnClicked() {
self.delegate?.didMatchBtnClicked()
self.delegate?.rematchUsers()
self.navigationController?.popViewController(animated: true)
}
......
......@@ -357,5 +357,20 @@ extension YHMatchUserViewController {
}
}
func rematchUsers() {
if YHLoginManager.shared.isLogin() {
YHHUD.show(.progress(message: "加载中..."))
self.informationAuthorizeViewModel.requestUserInfo {[weak self] success, error in
YHHUD.hide()
guard let self = self else { return }
YHHUD.show(.progress(message: "加载中..."))
self.viewModel.requestUserAuthorization {[weak self] success, error in
YHHUD.hide()
guard let self = self else { return }
self.didMatchBtnClicked()
}
}
}
}
}
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