fix: while 循环做card_door_authority的提高补偿机制次数
This commit is contained in:
parent
eeca896a78
commit
4e6f4b249b
|
@ -193,14 +193,14 @@ class HrmService:
|
|||
"cardPrivilegeDetails": details
|
||||
}
|
||||
ind = 0
|
||||
while ind < 6:
|
||||
while ind < 8:
|
||||
time.sleep(6)
|
||||
try:
|
||||
dhClient.request(**dhapis['card_door_authority'], json=json_data)
|
||||
break
|
||||
except Exception as e:
|
||||
ind = ind + 1
|
||||
if ind >= 6:
|
||||
if ind >= 8:
|
||||
raise e
|
||||
# time.sleep(5)
|
||||
# is_ok, res = dhClient.request(**dhapis['card_door_authority'], json=json_data, raise_exception=False)
|
||||
|
|
Loading…
Reference in New Issue