3
0

2 Коммитууд dd433fd79c ... 640289a3e9

Эзэн SHA1 Мессеж Огноо
  余尚辉 640289a3e9 Merge branch 'dev_transfer_20241123' of ssh://gitlab.fuxicarbon.com:1111/client_service/voice-gateway-service into dev_transfer_20241123 19 цаг өмнө
  余尚辉 245023b5da fix: bug 19 цаг өмнө
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/core/voip/bot.py

+ 1 - 1
src/core/voip/bot.py

@@ -360,7 +360,7 @@ class MyCall(pj.Call):
 
 class ToTextBotAgent:
     def __init__(self, user_asr_text, call_agent):
-        if not user_asr_text or call_agent.action.get("action_code") != "normal":
+        if not user_asr_text or (call_agent.action and call_agent.action.get("action_code") != "normal"):
             print("ASR文本为空,终止执行。")
             return
         self.call_agent = call_agent