工作流bug
This commit is contained in:
parent
318dd48883
commit
3a1b6483f0
|
@ -206,6 +206,8 @@ class WfService(object):
|
||||||
if len(destination_participant) == 1: # 如果只有一个人
|
if len(destination_participant) == 1: # 如果只有一个人
|
||||||
destination_participant_type = State.PARTICIPANT_TYPE_PERSONAL
|
destination_participant_type = State.PARTICIPANT_TYPE_PERSONAL
|
||||||
destination_participant = destination_participant[0]
|
destination_participant = destination_participant[0]
|
||||||
|
elif destination_participant_type == State.PARTICIPANT_TYPE_ROBOT:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
destination_participant_type = State.PARTICIPANT_TYPE_PERSONAL
|
destination_participant_type = State.PARTICIPANT_TYPE_PERSONAL
|
||||||
if destination_participant_type == State.PARTICIPANT_TYPE_MULTI:
|
if destination_participant_type == State.PARTICIPANT_TYPE_MULTI:
|
||||||
|
|
|
@ -441,7 +441,7 @@ class TicketViewSet(CreateUpdateCustomMixin, CreateModelMixin, ListModelMixin, R
|
||||||
ticket = self.get_object()
|
ticket = self.get_object()
|
||||||
if not ticket.script_run_last_result:
|
if not ticket.script_run_last_result:
|
||||||
ticket.script_run_last_result = True
|
ticket.script_run_last_result = True
|
||||||
run_task(ticket.id)
|
run_task.delay(ticket.id)
|
||||||
return Response()
|
return Response()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue