From 45d1874867968e4b2f00f4cbc85623b055a5bf02 Mon Sep 17 00:00:00 2001 From: ChenXL97 <908926798@qq.com> Date: Sat, 18 Nov 2023 21:09:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=84=E7=90=86=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=E7=9B=AE=E6=A0=87=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robowaiter/behavior_lib/act/DealChat.py | 2 +- robowaiter/scene/scene.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/robowaiter/behavior_lib/act/DealChat.py b/robowaiter/behavior_lib/act/DealChat.py index 4e87a1f..0bdcf70 100644 --- a/robowaiter/behavior_lib/act/DealChat.py +++ b/robowaiter/behavior_lib/act/DealChat.py @@ -47,7 +47,7 @@ class DealChat(Act): if len(w)>1: for x in w[1:]: if x != "": - goal_set.add(x[0] + ")") + goal_set.add(x[1:] + ")") self.function_success = True except: print("参数解析错误") diff --git a/robowaiter/scene/scene.py b/robowaiter/scene/scene.py index 6898cf0..a36ded3 100644 --- a/robowaiter/scene/scene.py +++ b/robowaiter/scene/scene.py @@ -458,6 +458,7 @@ class Scene: def customer_say(self,name,sentence,show_bubble=True): if isinstance(name,int): name = self.walker_index2mem(name) + print(f'{name} say: {sentence}') if show_bubble: self.walker_bubble(name,sentence)