From 04b7710abefb66e8f9c9df7891b54bcfac15887c Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 29 Mar 2023 20:06:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DIP=E6=9F=A5=E8=AF=A2=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=98=BE=E7=A4=BA=E6=97=B6=E5=8F=AF=E8=83=BD=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=8E=BF=E7=BA=A7=E5=8D=95=E4=BD=8D=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/iplibrary/reader_result.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/iplibrary/reader_result.go b/pkg/iplibrary/reader_result.go index 2a47321..6d7c654 100644 --- a/pkg/iplibrary/reader_result.go +++ b/pkg/iplibrary/reader_result.go @@ -177,7 +177,7 @@ func (this *QueryResult) Summary() string { pieces = append(pieces, cityName) } if len(townName) > 0 && !lists.ContainsString(pieces, townName) && !lists.ContainsString(pieces, strings.TrimSuffix(townName, "县")) { - pieces = append(pieces, cityName) + pieces = append(pieces, townName) } if len(providerName) > 0 && !lists.ContainsString(pieces, providerName) {