zwxi 1 年之前
父节点
当前提交
dbbc66cb63
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      services/base_from_ths_ds.go

+ 1 - 1
services/base_from_ths_ds.go

@@ -196,11 +196,11 @@ func getEdbDataFromThsDsApp(stockCode, edbCode, startDate, endDate string, num i
 		for _, stockData := range response.Data {
 			time := stockData["time"].(string)
 			//thsCode := stockData["thscode"].(string)
-			tableTimeList = append(tableTimeList, time)
 
 			for k, v := range stockData {
 				if k != "time" && k != "thscode" {
 					if v != nil {
+						tableTimeList = append(tableTimeList, time)
 						tableValueList = append(tableValueList, v.(float64))
 					}
 				}