瀏覽代碼

回调判断

jsonwang 3 年之前
父節點
當前提交
b400523348
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      BFFramework/Classes/Stuckpoint/View/PQSpeedSettingView.swift

+ 2 - 2
BFFramework/Classes/Stuckpoint/View/PQSpeedSettingView.swift

@@ -127,8 +127,8 @@ class PQSpeedSettingView: UIView {
         //发出回调,调用方走统一处理逻辑
         if selectSpeedCallBack != nil {
             BFLog(message: "选择的速度为 max: \(lastSelectModel?.maxSpeed ?? 0.0) min: \(lastSelectModel?.minSpeed ?? 0.0)")
-            if(lastSelectModel?.title == "自定义"){
-                selectSpeedCallBack!(-1,-1,index,isSettingPlayer)
+            if(lastSelectModel?.title == "自定义" || lastSelectModel?.title == "自定义\n快慢速"){
+                selectSpeedCallBack!(-1,-1,index,false)
             }else{
                 selectSpeedCallBack!(lastSelectModel?.maxSpeed ?? 0.0, lastSelectModel?.minSpeed ?? 0.0,index,isSettingPlayer)
             }