Commit 70e852a8a8acf5b90a17f0bb2f12edc05f7ceb16
1 parent
2ec2ef24
改回sid
Showing
2 changed files
with
5 additions
and
12 deletions
metaCode/Classes/Main/HomePage/View/CNMainView.swift
| @@ -154,17 +154,10 @@ class CNFrontMainView : UIView{ | @@ -154,17 +154,10 @@ class CNFrontMainView : UIView{ | ||
| 154 | @objc func addStandBtnAction() { | 154 | @objc func addStandBtnAction() { |
| 155 | //跳转到添加身份页面 | 155 | //跳转到添加身份页面 |
| 156 | // currentViewController()?.navigationController?.pushViewController(CNLiveMineInputViewController.init(listModel: _idModel!), animated: false) | 156 | // currentViewController()?.navigationController?.pushViewController(CNLiveMineInputViewController.init(listModel: _idModel!), animated: false) |
| 157 | -// DispatchQueue.main.asyncAfter(deadline: .now()+0.5){ | ||
| 158 | - | ||
| 159 | - let vc:CNLiveBaseViewController = currentViewController() as! CNLiveBaseViewController | ||
| 160 | - if(vc.isKind(of: CNMetaCodeHomePageController.self)){ | ||
| 161 | - currentViewController()?.navigationController?.pushViewController(CNLiveMineInputViewController.init(listModel: _idModel!), animated: true) | ||
| 162 | -// currentViewController()?.navigationController?.pushViewController(CNTempController(), animated: true) | ||
| 163 | - }else{ | ||
| 164 | - print("notclass") | 157 | + DispatchQueue.main.asyncAfter(deadline: .now()+0.25){ |
| 158 | + currentViewController()?.navigationController?.pushViewController(CNLiveMineInputViewController.init(listModel: self._idModel!), animated: true) | ||
| 165 | } | 159 | } |
| 166 | - | ||
| 167 | -// } | 160 | + |
| 168 | } | 161 | } |
| 169 | } | 162 | } |
| 170 | 163 |
metaCode/Classes/Main/MinePage/ViewModel/CNLiveMineViewModel.swift
| @@ -253,7 +253,7 @@ class CNLiveMineViewModel: NSObject { | @@ -253,7 +253,7 @@ class CNLiveMineViewModel: NSObject { | ||
| 253 | /// - resultBlock: 返回 | 253 | /// - resultBlock: 返回 |
| 254 | static func requestAuthStandList(page: NSInteger, resultBlock: @escaping resultNewsBlock) { | 254 | static func requestAuthStandList(page: NSInteger, resultBlock: @escaping resultNewsBlock) { |
| 255 | let param = NSMutableDictionary() | 255 | let param = NSMutableDictionary() |
| 256 | - param.setValue("10458139", forKey: "sid")//10458139 UserInfoManager.shared.userInfo.uid | 256 | + param.setValue(UserInfoManager.shared.userInfo.uid, forKey: "sid")//10458139 UserInfoManager.shared.userInfo.uid |
| 257 | param.setValue("10", forKey: "pageSize") | 257 | param.setValue("10", forKey: "pageSize") |
| 258 | param.setValue("\(page)", forKey: "page") | 258 | param.setValue("\(page)", forKey: "page") |
| 259 | CNLiveNetworking.setAllowRequestDefaultArgument(true) | 259 | CNLiveNetworking.setAllowRequestDefaultArgument(true) |
| @@ -451,7 +451,7 @@ class CNLiveMineViewModel: NSObject { | @@ -451,7 +451,7 @@ class CNLiveMineViewModel: NSObject { | ||
| 451 | /// - resultBlock: 返回 | 451 | /// - resultBlock: 返回 |
| 452 | static func requestsStandInfo(identityId: String, type: CNLiveMineGetWriteType, resultBlock: @escaping resultNewsBlock) { | 452 | static func requestsStandInfo(identityId: String, type: CNLiveMineGetWriteType, resultBlock: @escaping resultNewsBlock) { |
| 453 | let param = NSMutableDictionary() | 453 | let param = NSMutableDictionary() |
| 454 | - param.setValue("10458139", forKey: "sid")//UserInfoManager.shared.userInfo.uid //10458139 | 454 | + param.setValue(UserInfoManager.shared.userInfo.uid, forKey: "sid")//UserInfoManager.shared.userInfo.uid //10458139 |
| 455 | param.setValue(identityId, forKey: "identityId") | 455 | param.setValue(identityId, forKey: "identityId") |
| 456 | showLoading(message: "") | 456 | showLoading(message: "") |
| 457 | CNLiveNetworking.setAllowRequestDefaultArgument(true) | 457 | CNLiveNetworking.setAllowRequestDefaultArgument(true) |