From 6560a9a5c269590a471ac422452d5b3751baf58f Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sun, 15 Dec 2024 17:45:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=9C=AA=E6=89=A7=E8=A1=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 62eb453..7c51506 100644 --- a/main.go +++ b/main.go @@ -225,8 +225,8 @@ func ReadConfigToSetSystem() { } } - var is_exist bool - user_sync_id := -1 + is_exist := false + user_sync_id := -1 //用户同步任务索引 for i, v := range cron_infos { if v.Type == 2 { is_exist = true @@ -235,6 +235,7 @@ func ReadConfigToSetSystem() { v.Curr = proto.Config.USER_SYNC_TIME } user_sync_id = i + cron_infos[i] = v break } }