소스 검색

坐席sdk接口开发,fix

刘威 5 달 전
부모
커밋
c2114a3239
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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