Bladeren bron

fix: 回退

余尚辉 19 uur geleden
bovenliggende
commit
3fa8412159
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      src/core/voip/bot.py

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

@@ -192,7 +192,7 @@ class MyCall(pj.Call):
         self.wait_time = None
         self.inputType = None #记录按键类型 1为长按键类型
         self.digit = '' # 存储长按键内容
-        self.action = {}
+        self.action = None
         self.node_id= 'start'
 
         self.cur_player_file = None   #当前播放的文件
@@ -348,8 +348,8 @@ class MyCall(pj.Call):
         ToTextBotAgent(user_asr_text,self)
 
     def say_end_action(self, action):
-        print('handling_release', action)
-        action_code = action.get("action_code")
+        print('handling_release', action.action_code)
+        action_code = action.action_code
         if action_code == 'hang':  # 挂断
             action_content = action.action_content
             print(f'todo 挂电话:{action_content}')