|
@@ -294,7 +294,7 @@ class AgentOperService:
|
|
|
self.agent_monitor_service.update_checkin(agent_monitor)
|
|
|
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)
|
|
|
-
|
|
|
+ print("checkin", agent_monitor,agent_monitor.check_state)
|
|
|
if req.scene == AgentScene.MANUAL.code:
|
|
|
# 如果是手动外呼增加置忙
|
|
|
self._handle_idle(req.scene, agent)
|
|
@@ -612,6 +612,7 @@ class AgentMonitorService:
|
|
|
agent_monitor.check_in_time = datetime.now()
|
|
|
agent_monitor.heart_state = AgentHeartState.NORMAL.code
|
|
|
agent_monitor.heart_time = datetime.now()
|
|
|
+ self.logger.info("update_checkin %s", agent_monitor.check_state)
|
|
|
db.session.commit()
|
|
|
|
|
|
@with_app_context
|