DavidLiu преди 4 месеца
родител
ревизия
fc4510f877
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/core/callcenter/agent.py

+ 3 - 3
src/core/callcenter/agent.py

@@ -54,7 +54,7 @@ class AgentEventService:
                 return
             self.agent_monitor_service.update_idle(agent_monitor)
 
-            self.push_handler.push_on_call_end(state_data.saas_id, state_data.flow_id, agent_scene, ServiceDirect.MANUAL_CALL.service_direct, '0')
+            self.push_handler.push_on_call_end(state_data.saas_id, state_data.flow_id, state_data.agent_num, agent_scene, ServiceDirect.MANUAL_CALL.service_direct, '0')
             self.push_handler.push_on_agent_work_report(state_data.saas_id, state_data.flow_id, state_data.agent_num, '', agent_scene, WorkStatus.AGENT_HANG_REPROCESSING)
             self.push_handler.push_on_agent_work_report(state_data.saas_id, state_data.flow_id, state_data.agent_num, '', agent_scene, WorkStatus.AGENT_HANG_IDLE)
 
@@ -66,7 +66,7 @@ class AgentEventService:
             self.agent_monitor_service.update_idle(agent_monitor)
 
             if AgentServiceState.DIALING.code == agent_monitor.service_state:
-                self.push_handler.push_on_call_end(state_data.saas_id, state_data.flow_id, agent_scene, ServiceDirect.MANUAL_CALL.service_direct, '0')
+                self.push_handler.push_on_call_end(state_data.saas_id, state_data.flow_id, state_data.agent_num, agent_scene, ServiceDirect.MANUAL_CALL.service_direct, '0')
                 self.push_handler.push_on_agent_work_report(state_data.saas_id, state_data.flow_id, state_data.agent_num, '', agent_scene, WorkStatus.AGENT_HANG_REPROCESSING)
 
             self.push_handler.push_on_agent_work_report(state_data.saas_id, state_data.flow_id, state_data.agent_num, '', agent_scene, WorkStatus.AGENT_HANG_IDLE)
@@ -135,7 +135,7 @@ class AgentEventService:
 
             self.agent_monitor_service.update_processing(agent_monitor)
             self.reprocessing_idle(AgentDelayStateData(saas_id, flow_id, agent_num, AgentServiceState.REPROCESSING, AgentScene.MANUAL))
-            self.push_handler.push_on_call_end(saas_id, flow_id, AgentScene.MANUAL, ServiceDirect.MANUAL_CALL.service_direct, '0')
+            self.push_handler.push_on_call_end(saas_id, flow_id, agent_num, AgentScene.MANUAL, ServiceDirect.MANUAL_CALL.service_direct, '0')
             self.push_handler.push_on_agent_work_report(saas_id, flow_id, agent_num, call_id, AgentScene.MANUAL, WorkStatus.AGENT_HANG_REPROCESSING)
             self.push_handler.push_on_agent_report(saas_id, agent_num, AgentScene.MANUAL, AgentServiceState.REPROCESSING)