From ba937ce751b877d553cb4e61f8fb2d8ee46fcbec Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 14 Apr 2023 16:54:10 +0800 Subject: [PATCH] =?UTF-8?q?refector:=20=E4=B8=80=E7=82=B9=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/develop/views.py | 2 +- apps/hrm/services.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/develop/views.py b/apps/develop/views.py index 01670a4c..ae06cbbe 100755 --- a/apps/develop/views.py +++ b/apps/develop/views.py @@ -208,7 +208,7 @@ class TestViewSet(CustomGenericViewSet): 'employee': '访客石非凡', 'event': '未带安全帽'}) return Response() - @idempotent() + @auto_log() @action(methods=['post'], detail=False, serializer_class=Serializer) def test_snap_only(self, request, pk=None): """通道抓图 diff --git a/apps/hrm/services.py b/apps/hrm/services.py index 3b6a48ec..2a7e477e 100755 --- a/apps/hrm/services.py +++ b/apps/hrm/services.py @@ -76,6 +76,7 @@ class HrmService: } ) dhClient.request(**dhapis['person_update'], json=json_data) + ep = cls.save(ep, data={'dh_id': dh_id, 'dh_photo': dh_photo}) else: _, res = dhClient.request(**dhapis['person_gen_id']) dh_id = res['id']