Procházet zdrojové kódy

坐席sdk接口开发,fix

刘威 před 5 měsíci
rodič
revize
c2114a3239
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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