Bläddra i källkod

refactor: Modify the master start-stop logic

HeWang 7 månader sedan
förälder
incheckning
afd9993d88
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      aarch64/pjibot_guide/control/pkg/judge_cloud.go

+ 3 - 0
aarch64/pjibot_guide/control/pkg/judge_cloud.go

@@ -20,6 +20,9 @@ func GetCloudStatus(cloudStatus *string, lastCloudStatus *string, turnLength int
 			c_log.GlobalLogger.Error("获取云端配置status失败:", err)
 			continue
 		}
+		if taskStatus == "" || taskStatus == " " {
+			taskStatus = "NONE"
+		}
 		*cloudStatus = taskStatus
 	}
 }