@@ -346,7 +346,7 @@ def consumer_info_api(request): |
||
346 | 346 |
code_version=code_version, |
347 | 347 |
ym=ymd[:6], |
348 | 348 |
ymd=ymd, |
349 |
- province=user.province_name if user.province_name else user.province, |
|
349 |
+ province=user.province_name if lat == 0.0 and lon == 0.0 else '', |
|
350 | 350 |
) |
351 | 351 |
|
352 | 352 |
if not user.test_user and not dupload: |
@@ -102,7 +102,7 @@ class Command(CompatibilityBaseCommand): |
||
102 | 102 |
|
103 | 103 |
logs = ConsumeInfoSubmitLogInfo.objects.filter(user_id=userinfo.user_id, status=True) |
104 | 104 |
for log in logs: |
105 |
- log.province = log.province if log.lat and log.lon else province_name |
|
105 |
+ log.province = province_name if log.lat == 0.0 and log.lon == 0.0 else log.province |
|
106 | 106 |
log.save() |
107 | 107 |
|
108 | 108 |
close_old_connections() |