Commit d4ecb32b8e332d5908b56345cb993fd1d8c3194f

Authored by 张旭
1 parent 64ddccb1

身份审核后定时20s刷新

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