Explorar o código

Merge branch 'dev_transfer_20241123' of ssh://gitlab.fuxicarbon.com:1111/client_service/voice-gateway-service into dev_transfer_20241123

余尚辉 hai 17 horas
pai
achega
7db2031c6a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/core/callcenter/agent.py

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

@@ -548,7 +548,7 @@ class AgentStateService:
 
     def assign_agent(self, saas_id, service_id, called=None, ivr_id=None, task_id=None, cbp=None):
         choose_phone_num = ''
-        self.logger.info("assignAgent %s %s %s", saas_id, service_id, called)
+        self.logger.info("assignAgent %s %s %s"% (saas_id, service_id, called), flush=True)
         idle_agents = self.idle_agents(saas_id, service_id)
         if len(idle_agents) <= 0:
             return choose_phone_num
@@ -563,7 +563,7 @@ class AgentStateService:
         cache_agent_list = self.get_cache_agent_list(saas_id, service_id)
         if not cache_agent_list:
             return []
-        agent_str = '\n'.join(["%s-%s-%s-%s".format(x.phone_num, x.status, x.time, x.assign_time) for x in cache_agent_list])
+        agent_str = '\n'.join(["%s-%s-%s-%s"%(x.phone_num, x.status, x.time, x.assign_time) for x in cache_agent_list])
         print("assignAgent %s %s idleAgents:%s "% (saas_id, service_id, agent_str), flush=True)
         return self.get_idle_agents(cache_agent_list)