|
@@ -272,8 +272,10 @@ class SerialNumberView(View):
|
|
|
'operation': '序列号{}获取uid: {}'.format(serial, CommonService.decode_data(res['uid'])),
|
|
|
}
|
|
|
LogModel.objects.create(**log)
|
|
|
+ redisObj.del_data(key=key)
|
|
|
return response.json(0, res)
|
|
|
elif company_serial.status == 3: # 已占用
|
|
|
+ redisObj.del_data(key=key)
|
|
|
sync_success = self.sync_serial_data_and_log(request, company_serial.id, serial_number, now_time)
|
|
|
if not sync_success:
|
|
|
return response.json(10042)
|