Commit d4ecb32b8e332d5908b56345cb993fd1d8c3194f

Authored by 张旭
1 parent 64ddccb1

身份审核后定时20s刷新

metaCode/Classes/Main/HomePage/Controller/CNMetaCodeHomePageController.swift
... ... @@ -190,6 +190,10 @@ class CNMetaCodeHomePageController:CNLiveBaseViewController, NewPagedFlowViewDel
190 190 NotificationCenter.default.addObserver(self, selector: #selector(networkStatusNotificationActionReachableViaWWAN), name:Notification.Name.NetworkStatus.CNLiveNetworkStatusNotificationReachableViaWWAN, object: nil)
191 191 NotificationCenter.default.addObserver(self, selector: #selector(networkStatusNotificationActionReachableViaWiFi), name: Notification.Name.NetworkStatus.CNLiveNetworkStatusNotificationReachableViaWiFi, object: nil)
192 192  
  193 + //提交身份审核后刷新
  194 + NotificationCenter.default.addObserver(self, selector: #selector(StandAuthNotificationSuccessAction), name: Notification.Name.StandAuth.StandAuthNotificationSuccess, object: nil)
  195 +
  196 +
193 197 // self.tabBarController?.tabBar.top = self.tabBarY + KSreenHeight
194 198  
195 199 }
... ... @@ -256,6 +260,13 @@ class CNMetaCodeHomePageController:CNLiveBaseViewController, NewPagedFlowViewDel
256 260 @objc func networkStatusNotificationActionReachableViaWiFi(){
257 261 self.getUserIdentityApi()
258 262 }
  263 +
  264 + //身份审核后刷新接口
  265 + @objc func StandAuthNotificationSuccessAction(){
  266 + self.getUserIdentityApi()
  267 + print("StandAuthNotificationSuccessAction")
  268 + }
  269 +
259 270  
260 271 // MARK: -添加约束
261 272 func makeConstraints(){
... ...
metaCode/Classes/Main/HomePage/View/CNMainView.swift
... ... @@ -112,7 +112,6 @@ class CNFrontMainView : UIView{
112 112 if(auth == true){
113 113 //已认证身份
114 114 //显示证件View
115   - print("已认证身份")
116 115 iDCardView.isHidden = false
117 116 iDCardView.idModel = newValue!
118 117 contentView.isHidden = true
... ...
metaCode/Classes/Main/MinePage/ViewModel/CNLiveMineViewModel.swift
... ... @@ -570,6 +570,7 @@ class CNLiveMineViewModel: NSObject {
570 570 showMessage(message: listBaseModel.name!.count > 0 ? "恭喜您通过认证,您已是\(listBaseModel.name ?? "")" : "恭喜您通过认证")
571 571 resultBlock(listBaseModel, .success)
572 572 NotificationCenter.default.post(name: Notification.Name.StandAuth.StandAuthNotificationSuccess, object: nil)
  573 +
573 574 } else {
574 575 showMessage(message: "审核失败,请您修改后重新提交")
575 576 resultBlock(listBaseModel, .failed)
... ...