ソースを参照

fix: 修改bug

shanghui 3 ヶ月 前
コミット
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: