From 5b47ea14f335d1c7398a741b63b5ab2079fbc047 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 23 Sep 2021 08:53:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E5=A4=9A=E4=BA=BA=E5=A4=84=E7=90=86se?= =?UTF-8?q?rvice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wf/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/wf/services.py b/hb_server/apps/wf/services.py index 06ce023..cd691d9 100644 --- a/hb_server/apps/wf/services.py +++ b/hb_server/apps/wf/services.py @@ -167,7 +167,7 @@ class WfService(object): elif participant_type in [State.PARTICIPANT_TYPE_MULTI, State.PARTICIPANT_TYPE_DEPT, State.PARTICIPANT_TYPE_ROLE]: if user.id not in participant: return dict(permission=False, msg="非当前处理人") - current_participant_count = len(participant.split(',')) + current_participant_count = len(participant) if current_participant_count >1 and state.distribute_type == State.STATE_DISTRIBUTE_TYPE_ACTIVE: return dict(permission=False, msg="需要先接单再处理") if ticket.in_add_node: