Commit da99994c031427688575285a17eecae24391954b

Authored by “张旭”
1 parent c315248f

认证卡片逻辑 防崩

metaCode/Classes/Main/HomePage/View/VerticalViews/MainView/CNIDCardView.swift
... ... @@ -71,8 +71,9 @@ class CNIDCardView: UIView{
71 71 CNLiveMineViewModel.requestsStandInfo(identityId: "\(_idModel!.id)", type: .havedate, authType: .person) { [self] result, respStatue in
72 72 hiddenLoading()
73 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 35  
36 36 lazy var closeBtn: UIButton = {
37 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 39 closeBtn.centerY = self.titleLabel.centerY
40 40 closeBtn.setImage(UIImage(named: "mine_header_icon_white_back"), for: .normal)
41 41 closeBtn.addTarget(self, action: #selector(changeCancelAction), for: .touchUpInside)
... ...