From c6173b62e0fea3116075d56692b73cc0bc624815 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期日, 27 八月 2023 00:54:56 +0800 Subject: [PATCH] 逻辑修改 --- crontask/cron_task.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/crontask/cron_task.go b/crontask/cron_task.go index b50db4d..da60256 100644 --- a/crontask/cron_task.go +++ b/crontask/cron_task.go @@ -27,7 +27,7 @@ return err } - s.Every(1).Minutes().StartImmediately().Do(func() { + s.Every(59).Seconds().StartImmediately().Do(func() { plcConfig, code := service.NewDevicePlcService().GetDevicePlc() if code != ecode.OK { return -- Gitblit v1.8.0