浏览代码

添加逻辑判断

jsonwang 3 年之前
父节点
当前提交
5a76e719b8
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      BFFramework/Classes/Stuckpoint/View/PQStuckPointCuttingView.swift

+ 4 - 1
BFFramework/Classes/Stuckpoint/View/PQStuckPointCuttingView.swift

@@ -255,7 +255,10 @@ class PQStuckPointCuttingView: UIView {
     /// 更新进度绘制不同色值
     /// progress <#progress description#>
     func updateProgress(progress: CGFloat) {
-
+        
+        if(progress < 0){
+            BFLog(message: "progress is error ")
+        }
         let startIndex = stuckPointStartTime / oneMarginTime
         BFLog(message: "startIndex is\(startIndex) stuckPointStartTime is: \(stuckPointStartTime)")
         let selectIndex = Int(startIndex + progress * CGFloat(wavSelectCount))