浏览代码

fix logical err

dujunchen 2 周之前
父节点
当前提交
0baae8689c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      internal/app/stc/priority/index.go

+ 2 - 2
internal/app/stc/priority/index.go

@@ -142,11 +142,11 @@ func CheckPriority(runType string) bool {
 	} else {
 		//C2C run together with other task except ..
 		if RunningType == "C2C" {
-			if runType != "PA" || runType != "PAD-ICP" || runType != "PAD-TMS" || runType != "C2C" {
+			if runType != "PA" && runType != "PAD-ICP" && runType != "PAD-TMS" && runType != "C2C" {
 				return true
 			}
 		} else if runType == "C2C" {
-			if RunningType != "PA" || RunningType != "PAD-ICP" || RunningType != "PAD-TMS" || RunningType != "C2C" {
+			if RunningType != "PA" && RunningType != "PAD-ICP" && RunningType != "PAD-TMS" && RunningType != "C2C" {
 				return true
 			}
 		}