Pārlūkot izejas kodu

添加逻辑判断

jsonwang 3 gadi atpakaļ
vecāks
revīzija
5a76e719b8

+ 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))