Commit 1a9a8031d79fb0b4ddcc09190b39712a48bda2ca
1 parent
7a6b0957
电商跳转逻辑
Showing
1 changed file
with
7 additions
and
2 deletions
metaCode/Classes/Main/HuBiLieHomePage/Util/CNLiveDownSlideTool.swift
| ... | ... | @@ -193,8 +193,13 @@ class CNLiveDownSlideTool:NSObject{ |
| 193 | 193 | self.pushVodController(albumId: contentId, navigationVC: navigationViewController().visibleViewController?.navigationController) |
| 194 | 194 | // self.pushVodController(contentId: contentId, navigationVC: navigationViewController().visibleViewController?.navigationController, isAblumVideo: true) |
| 195 | 195 | }else if (model == kCNDownSlideContentsModelModelProduct){ |
| 196 | -// let urlString = "https://managemall.cnlive.com/html/mall/1/#/pages/main/detail/detail?"+"id=\(contentId)&uid=\(UserInfoManager.shared.userInfo.uid)&scene=app" | |
| 197 | - let regURL = URL(string: thirdUrl) | |
| 196 | + var urlString = "" | |
| 197 | + if thirdUrl.count > 0 ,thirdUrl != "" ,thirdUrl != "null"{ | |
| 198 | + urlString = thirdUrl | |
| 199 | + }else{ | |
| 200 | + urlString = "https://managemall.cnlive.com/html/mall/1/#/pages/main/detail/detail?"+"id=\(contentId)&uid=\(UserInfoManager.shared.userInfo.uid)&scene=app" | |
| 201 | + } | |
| 202 | + let regURL = URL(string: urlString) | |
| 198 | 203 | let webVC = CNWebViewController() |
| 199 | 204 | webVC.url = regURL |
| 200 | 205 | webVC.isHiddenNavigationBar = true | ... | ... |