|
@@ -287,7 +287,8 @@ class AppSetView(View):
|
|
|
# 这里加sdStatus过滤条件条件
|
|
|
ip = CommonService.get_ip_address(request)
|
|
|
splashAdStatus = 0
|
|
|
- ip_addr_qs = IPAddr.objects.filter(ip=ip, is_geoip2=False).values('district', 'city')
|
|
|
+ ip_addr_qs = IPAddr.objects.filter(ip=ip, is_geoip2=False).values('country_code', 'city', 'region',
|
|
|
+ 'district')
|
|
|
if ip_addr_qs.exists():
|
|
|
ip_country_code = ip_addr_qs[0]['country_code']
|
|
|
ip_region = ip_addr_qs[0]['region']
|