shanghui 3 月之前
父節點
當前提交
e407049beb
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      src/core/callcenter/agent.py
  2. 1 0
      src/core/callcenter/data_handler.py

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

@@ -120,6 +120,7 @@ class AgentEventService:
                         return
 
                 self.agent_state_service.busy(saas_id, agent.agent_num, agent.phone_num)
+                self.logger.info('agent接通:',agent )
                 self.data_handle_server.update_record(call_id, status=1, user_id=agent.user_id,user_name=agent.agent_name)
                 if is_agent:
                     # 坐席接起

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

@@ -45,6 +45,7 @@ class DataHandleServer:
         for key, value in kwargs.items():
             if hasattr(call_record, key):
                 setattr(call_record, key, value)
+        self.app.logger.info(f"更新通话记录: {kwargs}")
         db.session.commit()
 
     @with_app_context