|
@@ -56,9 +56,13 @@ while True:
|
|
|
#获取海康安防系统人员卡片信息
|
|
|
cards = HikiSecure.get_card(diff_value)
|
|
|
print("%s,获取海康安防平台卡片信息成功"%datetime_now())
|
|
|
- print(cards)
|
|
|
+ cards_only = []
|
|
|
+ for i in cards:
|
|
|
+ if i not in cards_only:
|
|
|
+ cards_only.append(i)
|
|
|
+ print(cards_only)
|
|
|
#往海康云眸添加卡片
|
|
|
- HikCloud.hik_addcard(cards)
|
|
|
+ HikCloud.hik_addcard(cards_only)
|
|
|
|
|
|
# #海康云眸权限组绑定人员
|
|
|
HikCloud.hik_permissiongroupspersons(groupId,list(diff_value))
|