|
@@ -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}')
|