Commit f5d45e3d authored by zhengjinlei's avatar zhengjinlei

获取坐席列表

parent 863a5fd1
...@@ -61,7 +61,7 @@ class TasksApi(viewsets.ViewSet): ...@@ -61,7 +61,7 @@ class TasksApi(viewsets.ViewSet):
# return_data.append(agent) # return_data.append(agent)
data_reduce = lambda x, y: x if y in x else x + [y] data_reduce = lambda x, y: x if y in x else x + [y]
return_data = reduce(data_reduce, [[], ] + return_data) return_data = reduce(data_reduce, [[], ] + return_data)
return Response({'code': 0, 'msg': 'success', 'data': return_data}) return Response({'code': 0, 'msg': 'success', 'data': return_data[0]})
@action(['post'], detail=False) @action(['post'], detail=False)
def rule(self, req: Request): def rule(self, req: Request):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment