Commit 0c4289a5adacf525bb5664743bf69581807081e1
1 parent
623f5eb3
保存 实名信息
Showing
1 changed file
with
18 additions
and
0 deletions
metaCode/Classes/Main/HomePage/Controller/DigitalAuth/CNLiveFaceAuthController.swift
| @@ -368,6 +368,22 @@ class CNLiveFaceAuthController:CNLiveBaseViewController{ | @@ -368,6 +368,22 @@ class CNLiveFaceAuthController:CNLiveBaseViewController{ | ||
| 368 | 368 | ||
| 369 | return nil | 369 | return nil |
| 370 | } | 370 | } |
| 371 | + | ||
| 372 | + // MARK: -保存实名用户信息 | ||
| 373 | + func saveRealData(){ | ||
| 374 | + //获取用户信息 /api/identityApi/getUserMsg | ||
| 375 | + CNLiveMineViewModel.requestGetUserMsg(sid: UserInfoManager.shared.userInfo.uid) { result, respStatue in | ||
| 376 | + if respStatue == .success{ | ||
| 377 | + if let res = result as? MineGetUserMsgUsersModel{ | ||
| 378 | + let userInfo = UserInfoManager.shared.userInfo | ||
| 379 | + userInfo.userMsgUsers = res | ||
| 380 | + userInfo.currentUser = res.verifyUsers.first | ||
| 381 | + UserInfoManager.cacheUserInfo(userInfo: userInfo) | ||
| 382 | + } | ||
| 383 | + } | ||
| 384 | + } | ||
| 385 | + | ||
| 386 | + } | ||
| 371 | } | 387 | } |
| 372 | 388 | ||
| 373 | // Video Sessions | 389 | // Video Sessions |
| @@ -652,6 +668,8 @@ extension CNLiveFaceAuthController { | @@ -652,6 +668,8 @@ extension CNLiveFaceAuthController { | ||
| 652 | 668 | ||
| 653 | CNLiveDigitalAuthViewModel.postFaceImageDataWithParams(name: self.realName, idNo: self.realNumber, fileData: data) { result, status in | 669 | CNLiveDigitalAuthViewModel.postFaceImageDataWithParams(name: self.realName, idNo: self.realNumber, fileData: data) { result, status in |
| 654 | if status == .success{ | 670 | if status == .success{ |
| 671 | + //保存最新实名身份数据 | ||
| 672 | + self.saveRealData() | ||
| 655 | //跳转到身份认证页面 | 673 | //跳转到身份认证页面 |
| 656 | let listModel = StandListModel() | 674 | let listModel = StandListModel() |
| 657 | listModel.id = Int(self.channelId) ?? 0 | 675 | listModel.id = Int(self.channelId) ?? 0 |