Compare commits

...

2 Commits

Author SHA1 Message Date
junleea ac8b347cc2 Merge branch 'refs/heads/feat-user-sync' 2024-12-15 17:45:41 +08:00
junleea 6560a9a5c2 修复定时任务未执行问题 2024-12-15 17:45:31 +08:00
1 changed files with 3 additions and 2 deletions

View File

@ -226,8 +226,8 @@ func ReadConfigToSetSystem() {
} }
} }
var is_exist bool is_exist := false
user_sync_id := -1 user_sync_id := -1 //用户同步任务索引
for i, v := range cron_infos { for i, v := range cron_infos {
if v.Type == 2 { if v.Type == 2 {
is_exist = true is_exist = true
@ -236,6 +236,7 @@ func ReadConfigToSetSystem() {
v.Curr = proto.Config.USER_SYNC_TIME v.Curr = proto.Config.USER_SYNC_TIME
} }
user_sync_id = i user_sync_id = i
cron_infos[i] = v
break break
} }
} }