mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
重新定义接口
This commit is contained in:
@@ -48,7 +48,7 @@ func (this *PullKlineMysql) Run(ctx context.Context, m *tdx.Manage) error {
|
||||
//1. 获取所有股票代码
|
||||
codes := this.Config.Codes
|
||||
if len(codes) == 0 {
|
||||
codes = m.Codes.GetStocks()
|
||||
codes = m.Codes.GetStockCodes()
|
||||
}
|
||||
|
||||
for _, v := range codes {
|
||||
|
||||
@@ -110,7 +110,7 @@ func (this *PullKline) Run(ctx context.Context, m *tdx.Manage) error {
|
||||
//1. 获取所有股票代码
|
||||
codes := this.Config.Codes
|
||||
if len(codes) == 0 {
|
||||
codes = m.Codes.GetStocks()
|
||||
codes = m.Codes.GetStockCodes()
|
||||
}
|
||||
|
||||
for _, v := range codes {
|
||||
|
||||
Reference in New Issue
Block a user