浏览代码

去掉ip日志记录

tanghongbin 4 年之前
父节点
当前提交
4ddc0cb02f
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      Controller/EquipmentStatus.py

+ 0 - 4
Controller/EquipmentStatus.py

@@ -118,15 +118,11 @@ def getTZ(request):
 
             if data:
                 info = json.loads(data)
-                thread = threading.Thread(target=ModelService.add_ip_log, args=(ip, info))
-                thread.start()
                 return JsonResponse(status=200, data={'code': 0, 'msg': 'success', 'data': info})
             elif update:
                 info = CommonService.getIpIpInfo(ip=ip, lang=lang,update=True)
             else:
                 info = CommonService.getIpIpInfo(ip=ip, lang=lang,update=False)
-            thread = threading.Thread(target=ModelService.add_ip_log, args=(ip, info))
-            thread.start()
             try:
                 tz = info['utc_offset']
                 # 增加GMT,且补:00