소스 검색

修改翻新重置UID清除缓存

zhangdongming 7 달 전
부모
커밋
4b11e350ca
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      AdminController/DeviceManagementController.py

+ 2 - 1
AdminController/DeviceManagementController.py

@@ -517,7 +517,8 @@ class DeviceManagement(View):
                     # Order_Model.objects.filter(UID__in=uidList, order_type=0).delete()
                     Device_Info.objects.filter(UID__in=uidList).update(vodPrimaryUserID='', vodPrimaryMaster='')
                 # 删除用户UID缓存
-                threading.Thread(target=DeviceManagement.deleteDeviceCache, args=uidList)
+                thread = threading.Thread(target=DeviceManagement.deleteDeviceCache, args=(uidList,))
+                thread.start()
                 # 上传序列号文件且选中序列号解绑uid
                 # if serialNumberList is not None and '序列号解绑uid' in delDataOptions:
                 #     # 解绑uid数据