zwxi vor 1 Jahr
Ursprung
Commit
b4aef0d033
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      services/base_from_ths_ds.go

+ 2 - 1
services/base_from_ths_ds.go

@@ -148,11 +148,12 @@ 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)
+				//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))
 						}
 					}