mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
临时解决盘口价格不对的问题,感觉不是很合理
This commit is contained in:
6
codes.go
6
codes.go
@@ -125,7 +125,7 @@ func (this *Codes) Get(code string) *CodeModel {
|
||||
}
|
||||
|
||||
func (this *Codes) Update(byCache ...bool) error {
|
||||
codes, err := this.Code(len(byCache) > 0 && byCache[0])
|
||||
codes, err := this.GetCodes(len(byCache) > 0 && byCache[0])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -139,8 +139,8 @@ func (this *Codes) Update(byCache ...bool) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Code 更新股票并返回结果
|
||||
func (this *Codes) Code(byDatabase bool) ([]*CodeModel, error) {
|
||||
// GetCodes 更新股票并返回结果
|
||||
func (this *Codes) GetCodes(byDatabase bool) ([]*CodeModel, error) {
|
||||
|
||||
//2. 查询数据库所有股票
|
||||
list := []*CodeModel(nil)
|
||||
|
||||
Reference in New Issue
Block a user