mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7b6963bd6 |
@@ -89,7 +89,7 @@ func (this *Workday) Update() error {
|
||||
|
||||
//获取沪市指数的日K线,用作历史是否节假日的判断依据
|
||||
//判断日K线是否拉取过
|
||||
|
||||
|
||||
//获取全部工作日
|
||||
all := []*WorkdayModel(nil)
|
||||
if err := this.db.Find(&all); err != nil {
|
||||
@@ -119,6 +119,10 @@ func (this *Workday) Update() error {
|
||||
}
|
||||
}
|
||||
|
||||
if len(inserts) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
_, err = this.db.Insert(inserts)
|
||||
return err
|
||||
|
||||
|
||||
Reference in New Issue
Block a user