Kaynağa Gözat

坐席sdk接口开发,fix

刘威 5 ay önce
ebeveyn
işleme
c2114a3239
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/core/callcenter/agent.py

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

@@ -251,7 +251,7 @@ def _get_newest_agent_number(saas_id):
     agent = Agent.query.filter(Agent.saas_id == saas_id).order_by(Agent.agent_num.desc()).first()
     agentNum = START_AGENT_NUM
     if agent and agent.agent_num:
-        agentNum = str(int(agentNum) + 1)
+        agentNum = str(int(agent.agent_num) + 1)
     return agentNum