|
@@ -294,7 +294,7 @@ class AppSetView(View):
|
|
ip_region = ip_addr_qs[0]['region']
|
|
ip_region = ip_addr_qs[0]['region']
|
|
ip_city = ip_addr_qs[0]['city']
|
|
ip_city = ip_addr_qs[0]['city']
|
|
ip_district = ip_addr_qs[0]['district']
|
|
ip_district = ip_addr_qs[0]['district']
|
|
- if ip_country_code == 'CN' and ip_region == '广东' and ip_city == '珠海市':
|
|
|
|
|
|
+ if ip_country_code == 'CN':
|
|
splashAdStatus = 1
|
|
splashAdStatus = 1
|
|
else:
|
|
else:
|
|
ip_qs = IPQuery(ip)
|
|
ip_qs = IPQuery(ip)
|
|
@@ -302,7 +302,7 @@ class AppSetView(View):
|
|
ip_region = ip_qs.region
|
|
ip_region = ip_qs.region
|
|
ip_city = ip_addr_qs.city
|
|
ip_city = ip_addr_qs.city
|
|
ip_district = ip_addr_qs.district
|
|
ip_district = ip_addr_qs.district
|
|
- if ip_country_code == 'CN' and ip_region == '广东' and ip_city == '珠海市':
|
|
|
|
|
|
+ if ip_country_code == 'CN':
|
|
splashAdStatus = 1
|
|
splashAdStatus = 1
|
|
IPAddr.objects.create(ip=ip, country_code=ip_country_code, region=ip_region, city=ip_city,
|
|
IPAddr.objects.create(ip=ip, country_code=ip_country_code, region=ip_region, city=ip_city,
|
|
district=ip_district)
|
|
district=ip_district)
|