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