Browse Source

fix hangup cab icp

dujunchen 2 weeks ago
parent
commit
86a00cb53c
1 changed files with 5 additions and 3 deletions
  1. 5 3
      internal/app/stc/broadcast/stc-broadcast.go

+ 5 - 3
internal/app/stc/broadcast/stc-broadcast.go

@@ -362,9 +362,11 @@ func AlarmHandle(data []byte) {
 	case 0x03: //hangup
 		//NotifyPaiu(exten, "hangup")
 		action.Hangup(exten)
-
-		action.Hangup("2311") //1 车接听
-		//action.Hangup("2381") //8 车接听
+		if active.CabNum == "1" {
+			action.Hangup("2311") //1 车接听
+		} else {
+			action.Hangup("2381") //8 车接听
+		}
 	}
 }