diff --git a/business/model/dao/dao_job.go b/business/model/dao/dao_job.go index a791226d6..bb1fee4b5 100644 --- a/business/model/dao/dao_job.go +++ b/business/model/dao/dao_job.go @@ -4,6 +4,7 @@ import ( "encoding/json" "fmt" "math" + "strings" "time" "git.rosy.net.cn/baseapi/utils" @@ -481,7 +482,7 @@ func GetStationInfoList(db *DaoDB, stationName string, cityCode int, lat, lng fl } for _, v := range stations { var oilInfo []*model.OilInfo - utils.Map2StructByJson(v.Prices, &oilInfo, false) + utils.Map2StructByJson(strings.ReplaceAll(v.Prices, "\\", ""), &oilInfo, false) v.OilInfo = oilInfo } fmt.Println("11111111111111111111111111111111111111111", utils.Format4Output(stations, false))