瀏覽代碼

refactor: Modify the master start-stop logic

HeWang 7 月之前
父節點
當前提交
afd9993d88
共有 1 個文件被更改,包括 3 次插入0 次删除
  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
 	}
 }