余尚辉 vor 4 Monaten
Ursprung
Commit
edab7f5143
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      src/core/callcenter/agent.py

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

@@ -64,9 +64,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)
     def checkout(self, req: AgentActionRequest):
         agent = _get_agent(req.saas_id, req.agent_id)