2 Revīzijas fc2339daa6 ... 7db2031c6a

Autors SHA1 Ziņojums Datums
  余尚辉 7db2031c6a Merge branch 'dev_transfer_20241123' of ssh://gitlab.fuxicarbon.com:1111/client_service/voice-gateway-service into dev_transfer_20241123 17 stundas atpakaļ
  余尚辉 2497ad9a93 fix: 回退 17 stundas atpakaļ
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      src/core/callcenter/agent.py

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

@@ -65,9 +65,9 @@ class AgentOperService:
            self.agent_actionlog_service.insert_check_state(agent_monitor, AgentCheck.IN, AgentLogState.CHECKIN)
            self.agent_state_service.checkin(agent.saas_id, agent.out_id, agent.phone_num)
 
-           # if req.scene == AgentScene.MANUAL.code:
-           #     # 如果是手动外呼增加置闲
-           #     self._handle_idle(req.scene, agent)
+           if req.scene == AgentScene.MANUAL.code:
+               # 如果是手动外呼增加置闲
+               self._handle_idle(req.scene, agent)
            return self._push_event_for_checkin(agent, agent_monitor, phone, req.scene)
        except Exception as e:
            self.logger.error(traceback.format_exc())
@@ -150,7 +150,7 @@ class AgentOperService:
         if agent_monitor.service_state == AgentServiceState.CALLING.code or agent_monitor.service_state == AgentServiceState.DIALING.code:
             raise BizException(BizErrorCode.AGENT_CALLING_NOT_HANG)
 
-        if scene == AgentScene.MANUAL.code:
+        if scene == AgentScene.ROBOT.code:
             self.agent_state_service.idle(agent.saas_id, agent.out_id, agent.phone_num)
         else:
             self.agent_state_service.busy(agent.saas_id, agent.out_id, agent.phone_num)