Commit da99994c031427688575285a17eecae24391954b
1 parent
c315248f
认证卡片逻辑 防崩
Showing
2 changed files
with
4 additions
and
3 deletions
metaCode/Classes/Main/HomePage/View/VerticalViews/MainView/CNIDCardView.swift
| @@ -71,8 +71,9 @@ class CNIDCardView: UIView{ | @@ -71,8 +71,9 @@ class CNIDCardView: UIView{ | ||
| 71 | CNLiveMineViewModel.requestsStandInfo(identityId: "\(_idModel!.id)", type: .havedate, authType: .person) { [self] result, respStatue in | 71 | CNLiveMineViewModel.requestsStandInfo(identityId: "\(_idModel!.id)", type: .havedate, authType: .person) { [self] result, respStatue in |
| 72 | hiddenLoading() | 72 | hiddenLoading() |
| 73 | if respStatue == .success { | 73 | if respStatue == .success { |
| 74 | - let cardArray = result as! NSMutableArray | ||
| 75 | - self.cardUIWithArray(cardArr: cardArray) | 74 | + if let cardArray = result as? NSMutableArray { |
| 75 | + self.cardUIWithArray(cardArr: cardArray) | ||
| 76 | + } | ||
| 76 | } | 77 | } |
| 77 | } | 78 | } |
| 78 | } | 79 | } |
metaCode/Classes/Main/HomePages/Controller/CNLiveTotalHotListController/CNLiveTotalHotListController.swift
| @@ -35,7 +35,7 @@ class CNLiveTotalHotListController:CNLiveBaseViewController, UICollectionViewDel | @@ -35,7 +35,7 @@ class CNLiveTotalHotListController:CNLiveBaseViewController, UICollectionViewDel | ||
| 35 | 35 | ||
| 36 | lazy var closeBtn: UIButton = { | 36 | lazy var closeBtn: UIButton = { |
| 37 | let closeBtn = UIButton(type: .custom) | 37 | let closeBtn = UIButton(type: .custom) |
| 38 | - closeBtn.frame = CGRect(x: 15, y: KStatusBarHeight, width: 20, height: 20) | 38 | + closeBtn.frame = CGRect(x: 0, y: KStatusBarHeight, width: 50, height: 30) |
| 39 | closeBtn.centerY = self.titleLabel.centerY | 39 | closeBtn.centerY = self.titleLabel.centerY |
| 40 | closeBtn.setImage(UIImage(named: "mine_header_icon_white_back"), for: .normal) | 40 | closeBtn.setImage(UIImage(named: "mine_header_icon_white_back"), for: .normal) |
| 41 | closeBtn.addTarget(self, action: #selector(changeCancelAction), for: .touchUpInside) | 41 | closeBtn.addTarget(self, action: #selector(changeCancelAction), for: .touchUpInside) |