|
@@ -137,7 +137,7 @@ class SerialNumberView(View):
|
|
if redisObj.get_data(scanned_serial_key):
|
|
if redisObj.get_data(scanned_serial_key):
|
|
return response.json(5)
|
|
return response.json(5)
|
|
app_scanned_serial_qs = AppScannedSerial.objects.filter(serial=serial).values('region_country')
|
|
app_scanned_serial_qs = AppScannedSerial.objects.filter(serial=serial).values('region_country')
|
|
- if not app_scanned_serial_qs.exists():
|
|
|
|
|
|
+ if not app_scanned_serial_qs.exists() and is_verify != '1':
|
|
redisObj.set_data(scanned_serial_key, 1, 24*60*60)
|
|
redisObj.set_data(scanned_serial_key, 1, 24*60*60)
|
|
LOGGER.info(f'{serial}当前序列号未进行APP扫码')
|
|
LOGGER.info(f'{serial}当前序列号未进行APP扫码')
|
|
return response.json(5)
|
|
return response.json(5)
|