zwxi пре 1 година
родитељ
комит
b4aef0d033
1 измењених фајлова са 2 додато и 1 уклоњено
  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))
 						}
 					}