mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
fix: 错误地resprule选择逻辑 (#810)
This commit is contained in:
parent
4ffa773fac
commit
ec8bd4922e
|
@ -44,8 +44,8 @@ class GroupRespondRuleCheckStage(stage.PipelineStage):
|
|||
|
||||
use_rule = rules['default']
|
||||
|
||||
if str(query.launcher_id) in use_rule:
|
||||
use_rule = use_rule[str(query.launcher_id)]
|
||||
if str(query.launcher_id) in rules:
|
||||
use_rule = rules[str(query.launcher_id)]
|
||||
|
||||
for rule_matcher in self.rule_matchers: # 任意一个匹配就放行
|
||||
res = await rule_matcher.match(str(query.message_chain), query.message_chain, use_rule, query)
|
||||
|
|
Loading…
Reference in New Issue
Block a user