feat 默认12小时拉一次
Some checks failed
Build image / build (push) Failing after 2m34s

This commit is contained in:
timerzz 2024-05-21 22:17:50 +08:00
parent 6120f23dde
commit 582ed37908

View File

@ -14,7 +14,7 @@ type Option struct {
}
func (c *Controller) LoadOption() {
c.db.FirstOrCreate(&c.Option, Option{Interval: time.Hour * 30, ExchangeRate: 7.3, Freight: 100})
c.db.FirstOrCreate(&c.Option, Option{Interval: time.Hour * 12, ExchangeRate: 7.3, Freight: 100})
}
func (c *Controller) SaveOption(opt Option) {