|
@@ -607,6 +607,7 @@ class SerialNumberView(View):
|
|
|
# 记录操作日志
|
|
|
ip = CommonService.get_ip_address(request)
|
|
|
content = json.loads(json.dumps(request_dict))
|
|
|
+ end_time = int(time.time())
|
|
|
log = {
|
|
|
'ip': ip,
|
|
|
'user_id': 1,
|
|
@@ -614,9 +615,10 @@ class SerialNumberView(View):
|
|
|
'time': now_time,
|
|
|
'content': json.dumps(content),
|
|
|
'url': 'serialNumber/detachUID',
|
|
|
- 'operation': '序列号{}解绑uid: {}'.format(serial, uid),
|
|
|
+ 'operation': '序列号{}解绑uid{},执行时间{}秒'.format(serial, uid, end_time-now_time),
|
|
|
}
|
|
|
LogModel.objects.create(**log)
|
|
|
+
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
# 记录操作日志
|