Compare commits

..

2 Commits

2 changed files with 7 additions and 3 deletions

View File

@@ -135,10 +135,10 @@ func basePrice(code string) Price {
return 1
}
switch code[:2] {
case "60", "30", "68", "00", "92", "43":
case "60", "30", "68", "00", "92", "43", "39":
return 1
default:
return 10
return 1
}
}

View File

@@ -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