Commit dd34fe884a4cfd78ec15f9dbfa271834f9d907e0

Authored by “张旭”
1 parent e59ea59a

增加身份需要实名的判断

metaCode/Classes/Main/HomePage/Controller/DigitalAuth/CNLiveDigitalAuthController.swift
... ... @@ -257,20 +257,29 @@ class CNLiveDigitalAuthController:CNLiveBaseViewController,UITableViewDataSource
257 257 // showMessage(message: "审核失败")
258 258  
259 259 }
260   - if UserInfoManager.shared.userInfo.userMsgUsers?.verifyUsers.count ?? 0 > 0{
261   - //实名认证过->身份管理页面
  260 + if collModel.auth == true{
  261 + //身份需要实名认证
  262 + if UserInfoManager.shared.userInfo.userMsgUsers?.verifyUsers.count ?? 0 > 0{
  263 + //实名认证过->身份管理页面
  264 + let listModel = StandListModel()
  265 + listModel.id = Int(collModel.id) ?? 0
  266 + listModel.name = ""
  267 + let vc = CNLiveDigitalRealManageController()
  268 + vc.listModel = listModel
  269 + self.navigationController?.pushViewController(vc, animated: true)
  270 +
  271 + }else{
  272 + //未实名认证->实名认证
  273 + let vc = CNLiveRealNameAuthController()
  274 + vc.channelId = collModel.id
  275 + self.navigationController?.pushViewController(vc, animated: true)
  276 + }
  277 + }else{
  278 + //身份不需要实名
  279 + //跳转到身份认证页面
262 280 let listModel = StandListModel()
263 281 listModel.id = Int(collModel.id) ?? 0
264   - listModel.name = ""
265   - let vc = CNLiveDigitalRealManageController()
266   - vc.listModel = listModel
267   - self.navigationController?.pushViewController(vc, animated: true)
268   -
269   - }else{
270   - //未实名认证->实名认证
271   - let vc = CNLiveRealNameAuthController()
272   - vc.channelId = self.channelId
273   - self.navigationController?.pushViewController(vc, animated: true)
  282 + self.navigationController?.pushViewController(CNLiveMineInputViewController.init(listModel: listModel, authType: .person), animated: pushAnimated)
274 283 }
275 284 }
276 285  
... ...
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/CNLiveIdentityRepositoryController.swift
... ... @@ -123,6 +123,13 @@ class CNLiveIdentityRepositoryController:CNLiveBaseViewController,UITableViewDat
123 123 return closeBtn
124 124 }()
125 125  
  126 + override func viewWillAppear(_ animated: Bool) {
  127 + super.viewWillAppear(animated)
  128 + self.currentSeleIndex = -1
  129 + self.currentSeleCollectionIndex = -1
  130 + self.tableView.reloadData()
  131 + }
  132 +
126 133 override func viewDidLoad() {
127 134 super.viewDidLoad()
128 135 self.view.backgroundColor = HexColor(kCNDownSlideBackgroundColorHex)
... ... @@ -319,19 +326,28 @@ class CNLiveIdentityRepositoryController:CNLiveBaseViewController,UITableViewDat
319 326 }else{
320 327 self.bottomTotalView.isHidden = true
321 328 }
322   - if UserInfoManager.shared.userInfo.userMsgUsers?.verifyUsers.count ?? 0 > 0{
323   - //实名认证过->身份管理页面
324   - let listModel = StandListModel()
325   - listModel.id = Int(self.currCollectMdl?.id ?? "0")!
326   - listModel.name = ""
327   - let vc = CNLiveDigitalRealManageController()
328   - vc.listModel = listModel
329   - self.navigationController?.pushViewController(vc, animated: true)
  329 + if self.currCollectMdl?.auth == true{
  330 + //身份需要实名认证
  331 + if UserInfoManager.shared.userInfo.userMsgUsers?.verifyUsers.count ?? 0 > 0{
  332 + //实名认证过->身份管理页面
  333 + let listModel = StandListModel()
  334 + listModel.id = Int(self.currCollectMdl?.id ?? "0")!
  335 + listModel.name = ""
  336 + let vc = CNLiveDigitalRealManageController()
  337 + vc.listModel = listModel
  338 + self.navigationController?.pushViewController(vc, animated: true)
  339 + }else{
  340 + //未实名认证->实名认证
  341 + let vc = CNLiveRealNameAuthController()
  342 + vc.channelId = self.currCollectMdl?.id ?? ""
  343 + self.navigationController?.pushViewController(vc, animated: true)
  344 + }
330 345 }else{
331   - //未实名认证->实名认证
332   - let vc = CNLiveRealNameAuthController()
333   - vc.channelId = self.channelId
334   - self.navigationController?.pushViewController(vc, animated: true)
  346 + //身份不需要实名
  347 + //跳转到身份认证页面
  348 + let listModel = StandListModel()
  349 + listModel.id = Int(self.currCollectMdl?.id ?? "0") ?? 0
  350 + self.navigationController?.pushViewController(CNLiveMineInputViewController.init(listModel: listModel, authType: .person), animated: pushAnimated)
335 351 }
336 352 }
337 353  
... ...