Parcourir la source

refactor: Modify the master start-stop logic

HeWang il y a 7 mois
Parent
commit
afd9993d88
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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
 	}
 }