This commit is contained in:
苏尹岚
2020-12-10 09:57:25 +08:00
parent 3f8bf89836
commit 0bb42973ba

View File

@@ -483,10 +483,8 @@ func GetStationInfoList(db *DaoDB, stationName string, cityCode int, lat, lng fl
for _, v := range stations {
var oilInfo []*model.OilInfo
json.Unmarshal([]byte(strings.ReplaceAll(v.Prices, "\\", "")), &oilInfo)
// utils.Map2StructByJson(strings.ReplaceAll(v.Prices, "\\", ""), &oilInfo, false)
v.OilInfo = oilInfo
}
fmt.Println("11111111111111111111111111111111111111111", utils.Format4Output(stations, false))
if math.Abs(utils.Int2Float64(sortType)) == 3 {
if oilCode != "" {
for i := 0; i < len(stations); i++ {