From 9f65a088c02f9d4aeac6edacf2024328e715d97d Mon Sep 17 00:00:00 2001 From: thsrite Date: Thu, 14 Sep 2023 16:09:56 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=8F=92=E4=BB=B6=E4=BA=A4=E4=BA=92?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=A2=9E=E5=8A=A0channel=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/command.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/command.py b/app/command.py index 9a260f21..b1e2ecc3 100644 --- a/app/command.py +++ b/app/command.py @@ -222,6 +222,10 @@ class Command(metaclass=Singleton): if args_num > 0: if cmd_data: # 有内置参数直接使用内置参数 + data = cmd_data.get("data") or {} + data['channel'] = channel + data['user'] = userid + cmd_data['data'] = data command['func'](**cmd_data) elif args_num == 2: # 没有输入参数,只输入渠道和用户ID