浏览代码

fix: 修改bug

shanghui 5 月之前
父节点
当前提交
fb7fbcf3ce
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/core/callcenter/agent.py

+ 1 - 0
src/core/callcenter/agent.py

@@ -380,6 +380,7 @@ class AgentOperService:
     @with_app_context
     def _handle_idle(self, scene, agent):
         agent_monitor = self.data_handle_server.get_agent_monitor(agent.saas_id, agent.agent_num)
+        print('agent_monitor:', agent_monitor, agent)
         if agent_monitor.check_state == AgentCheck.OUT.code:
             raise BizException(BizErrorCode.AGENT_CHECK_OUT_NOT_ALLOW_OPERATE)
         if agent_monitor.service_state == AgentServiceState.CALLING.code or agent_monitor.service_state == AgentServiceState.DIALING.code: