mirror of
https://github.com/woodchen-ink/aimodels-prices.git
synced 2025-07-18 05:32:00 +08:00
调整OpenRouter价格获取任务的定时执行时间为每4小时的整点,确保任务按预期执行。此更改提升了定时任务的准确性。
This commit is contained in:
parent
7a656bbeae
commit
49b8dce625
@ -21,7 +21,7 @@ func Init() {
|
||||
|
||||
// 注册价格获取任务
|
||||
// 每4小时执行一次
|
||||
_, err := cronScheduler.AddFunc("0 */4 * * *", func() {
|
||||
_, err := cronScheduler.AddFunc("0 0 */4 * * *", func() {
|
||||
if err := openrouter_api.FetchAndSavePrices(); err != nil {
|
||||
log.Printf("OpenRouter价格获取任务执行失败: %v", err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user