mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-01-03 04:26:34 +08:00
IP库查询结果显示城市
This commit is contained in:
@@ -22,7 +22,7 @@ func (this *Result) Summary() string {
|
||||
if len(this.Province) > 0 && !lists.ContainsString(pieces, this.Province) {
|
||||
pieces = append(pieces, this.Province)
|
||||
}
|
||||
if len(this.City) > 0 && !lists.ContainsString(pieces, this.City) && !lists.ContainsString(pieces, strings.TrimSuffix(this.Province, "市")) {
|
||||
if len(this.City) > 0 && !lists.ContainsString(pieces, this.City) && !lists.ContainsString(pieces, strings.TrimSuffix(this.City, "市")) {
|
||||
pieces = append(pieces, this.City)
|
||||
}
|
||||
return strings.Join(pieces, " ")
|
||||
|
||||
Reference in New Issue
Block a user