From 5a668e63cccb2902577e265a96ded9a21231fcd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 10 Dec 2020 09:48:40 +0800 Subject: [PATCH] aa --- business/model/dao/dao_job.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))