Sfoglia il codice sorgente

refactor: Modify the master start-stop logic

HeWang 7 mesi fa
parent
commit
afd9993d88
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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
 	}
 }