浏览代码

1.修改bugs

wenweiwei 3 年之前
父节点
当前提交
ed8b9bedd7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      MusicVideoPlus/Classes/Modules/Mine/Views/MVMineProductCell.swift

+ 1 - 1
MusicVideoPlus/Classes/Modules/Mine/Views/MVMineProductCell.swift

@@ -83,7 +83,7 @@ class MVMineProductCell: UICollectionViewCell {
     }
 
     func addData() {
-        let coverImg = (videoData?.videoCoverSnapshotPath != nil && (videoData?.videoCoverSnapshotPath?.count ?? 0) > 0) ? videoData?.videoCoverSnapshotPath ?? "" : videoData?.coverImg?["coverImgPath"] as! String
+        let coverImg : String = (("\(videoData?.coverImg?["coverImgPath"] ?? "")".count) > 0) ? "\(videoData?.coverImg?["coverImgPath"] ?? "")" : (videoData?.videoCoverSnapshotPath ?? "")
         coverImageView.setNetImage(url: coverImg)
         titleLabel.text = videoData?.title ?? ""
         statusBtn.isHidden = (videoData?.auditStatus == 5 && videoData?.transcodeStatus == 3 && (videoData?.transcodeStatus == 1 || videoData?.transcodeStatus == 3))