mirror of
				https://github.com/xiaoqidun/qqwry.git
				synced 2023-06-27 14:38:22 +08:00 
			
		
		
		
	feat(查询优化): 剔除无效区域
This commit is contained in:
		
							
								
								
									
										1
									
								
								qqwry.go
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								qqwry.go
									
									
									
									
									
								
							| @@ -141,6 +141,7 @@ func QueryIP(queryIp string) (city string, area string, err error) { | ||||
| 	} | ||||
| 	city = strings.TrimSpace(gb18030Decode([]byte(city))) | ||||
| 	area = strings.TrimSpace(gb18030Decode([]byte(area))) | ||||
| 	area = strings.ReplaceAll(area, "CZ88.NET", "") | ||||
| 	ipCache.Store(queryIp, cache{City: city, Area: area}) | ||||
| 	return | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user