diff --git a/business/model/dao/dao_job.go b/business/model/dao/dao_job.go index bb1fee4b5..ff028c2d5 100644 --- a/business/model/dao/dao_job.go +++ b/business/model/dao/dao_job.go @@ -482,7 +482,8 @@ func GetStationInfoList(db *DaoDB, stationName string, cityCode int, lat, lng fl } for _, v := range stations { 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 } fmt.Println("11111111111111111111111111111111111111111", utils.Format4Output(stations, false))