From 2d6875c93b25d0b7336c7fa11e066d213259fe2e Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 25 四月 2024 10:02:01 +0800 Subject: [PATCH] 更改定时任务时区设置 --- api/v1/device.go | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/api/v1/device.go b/api/v1/device.go index 01c278f..5bcb18d 100644 --- a/api/v1/device.go +++ b/api/v1/device.go @@ -2,15 +2,12 @@ import ( "apsClient/conf" - "apsClient/constvar" - "apsClient/crontask" "apsClient/model/request" "apsClient/model/response" _ "apsClient/model/response" "apsClient/pkg/contextx" "apsClient/pkg/ecode" "apsClient/pkg/logx" - "apsClient/pkg/safe" "apsClient/service" "github.com/gin-gonic/gin" ) @@ -52,9 +49,6 @@ } service.SetDeviceIDToFile(params.CurrentDeviceID) conf.Conf.CurrentDeviceID = params.CurrentDeviceID - safe.Go(func() { - _ = crontask.RestartTask(conf.Conf.SerfClusterStatus != constvar.SerfClusterStatusSlave) - }) ctx.Ok() } -- Gitblit v1.8.0