|
@@ -28,10 +28,12 @@ func init() {
|
|
|
}
|
|
|
|
|
|
func main() {
|
|
|
+ turnLength := 60
|
|
|
lastStatus := "NONE"
|
|
|
// 轮询任务接口判断是否有更新
|
|
|
for {
|
|
|
- time.Sleep(time.Duration(60) * time.Second)
|
|
|
+ c_log.GlobalLogger.Error("一次循环时间%v秒:", turnLength)
|
|
|
+ time.Sleep(time.Duration(turnLength) * time.Second)
|
|
|
// 1 获取当前设备的任务的 status
|
|
|
status, err := commonConfig.GetStatus(commonConfig.PlatformConfig.TaskConfigId)
|
|
|
if err != nil {
|