修复定时任务未执行问题

This commit is contained in:
junleea 2024-12-15 17:45:31 +08:00
parent 645106e3e6
commit 6560a9a5c2
1 changed files with 3 additions and 2 deletions

View File

@ -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
}
}