Compare commits
No commits in common. "b5cd667088e7be5cf0efff938bc7b520e9eca3b8" and "2f0266f3eeb0b47aa45e8695b44fd491f0e11ee3" have entirely different histories.
b5cd667088
...
2f0266f3ee
6
main.go
6
main.go
|
|
@ -290,7 +290,7 @@ func RunGeneralCron() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("RunGeneralCron Error decoding config,key value is :", res)
|
fmt.Println("RunGeneralCron Error decoding config,key value is :", res)
|
||||||
}
|
}
|
||||||
for i, v := range cron_infos {
|
for _, v := range cron_infos {
|
||||||
//1:日志清理,其他待定
|
//1:日志清理,其他待定
|
||||||
if v.Type == 1 {
|
if v.Type == 1 {
|
||||||
//日志清理
|
//日志清理
|
||||||
|
|
@ -301,8 +301,6 @@ func RunGeneralCron() {
|
||||||
} else {
|
} else {
|
||||||
v.Curr -= 10
|
v.Curr -= 10
|
||||||
}
|
}
|
||||||
cron_infos[i] = v
|
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
//2 从服务器同步数据
|
//2 从服务器同步数据
|
||||||
if v.Type == 2 {
|
if v.Type == 2 {
|
||||||
|
|
@ -315,8 +313,6 @@ func RunGeneralCron() {
|
||||||
} else {
|
} else {
|
||||||
v.Curr -= 10
|
v.Curr -= 10
|
||||||
}
|
}
|
||||||
cron_infos[i] = v
|
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//存入redis
|
//存入redis
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue