From 1f03e108d3bce300cbb54a7937a638de31372f02 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 7 Nov 2022 17:27:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=89=E5=BE=85=E5=8D=A1=E7=89=87=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=97=B6=E9=97=B4=E5=BB=B6=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/hrm/services.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/hrm/services.py b/apps/hrm/services.py index 42ae1dbe..4adddaf7 100755 --- a/apps/hrm/services.py +++ b/apps/hrm/services.py @@ -151,7 +151,7 @@ class HrmService: "endDate": endDate } _, res = dhClient.request(**dhapis['card_add'], json=json_data) - time.sleep(8) # 等待确保生成卡片 + time.sleep(6) # 等待确保生成卡片 cls.save(ep, data={'dh_face_card': cardNumber}) return cardNumber @@ -181,7 +181,7 @@ class HrmService: } is_ok, res = dhClient.request(**dhapis['card_door_authority'], json=json_data, raise_exception=False) if is_ok == 'fail' and '44999999' in res['code']: - time.sleep(6) + time.sleep(10) dhClient.request(**dhapis['card_door_authority'], json=json_data) elif is_ok == 'fail': raise ParseError(**res)