From 1037b83742c9efcb35c0c8460f14a07965ba42ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Tue, 10 Nov 2020 22:16:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/actions/default/log/index.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/web/actions/default/log/index.go b/internal/web/actions/default/log/index.go index 820bd0b9..e0feba8f 100644 --- a/internal/web/actions/default/log/index.go +++ b/internal/web/actions/default/log/index.go @@ -38,7 +38,6 @@ func (this *IndexAction) RunGet(params struct{}) { logMaps := []maps.Map{} for _, log := range logsResp.Logs { regionName := "" - log.Ip = "123.123.88.220" // TODO regionResp, err := this.RPC().IPLibraryRPC().LookupIPRegion(this.AdminContext(), &pb.LookupIPRegionRequest{Ip: log.Ip}) if err != nil { this.ErrorPage(err) @@ -56,7 +55,7 @@ func (this *IndexAction) RunGet(params struct{}) { pieces = append(pieces, regionResp.Region.City) } if len(regionResp.Region.Isp) > 0 && !lists.ContainsString(pieces, regionResp.Region.Isp) { - pieces = append(pieces, regionResp.Region.Isp) + pieces = append(pieces, "| "+regionResp.Region.Isp) } regionName = strings.Join(pieces, " ") }