fix: while 循环做card_door_authority的补偿机制4
This commit is contained in:
parent
ca1a426182
commit
702ef7641c
|
@ -197,6 +197,7 @@ class HrmService:
|
||||||
time.sleep(6)
|
time.sleep(6)
|
||||||
try:
|
try:
|
||||||
dhClient.request(**dhapis['card_door_authority'], json=json_data)
|
dhClient.request(**dhapis['card_door_authority'], json=json_data)
|
||||||
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
ind = ind + 1
|
ind = ind + 1
|
||||||
if ind >= 6:
|
if ind >= 6:
|
||||||
|
|
Loading…
Reference in New Issue