aa
This commit is contained in:
@@ -482,7 +482,8 @@ func GetStationInfoList(db *DaoDB, stationName string, cityCode int, lat, lng fl
|
|||||||
}
|
}
|
||||||
for _, v := range stations {
|
for _, v := range stations {
|
||||||
var oilInfo []*model.OilInfo
|
var oilInfo []*model.OilInfo
|
||||||
utils.Map2StructByJson(strings.ReplaceAll(v.Prices, "\\", ""), &oilInfo, false)
|
json.Unmarshal([]byte(strings.ReplaceAll(v.Prices, "\\", "")), &oilInfo)
|
||||||
|
// utils.Map2StructByJson(strings.ReplaceAll(v.Prices, "\\", ""), &oilInfo, false)
|
||||||
v.OilInfo = oilInfo
|
v.OilInfo = oilInfo
|
||||||
}
|
}
|
||||||
fmt.Println("11111111111111111111111111111111111111111", utils.Format4Output(stations, false))
|
fmt.Println("11111111111111111111111111111111111111111", utils.Format4Output(stations, false))
|
||||||
|
|||||||
Reference in New Issue
Block a user