mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
fix action response on bot action
This commit is contained in:
parent
92fabb0bfc
commit
2af14eff53
@ -92,7 +92,7 @@ trait BotActionTrait
|
||||
if ($response instanceof ActionResponse) {
|
||||
$handler = new AnnotationHandler(BotAction::class);
|
||||
$handler->setRuleCallback(fn (BotAction $act) => ($act->action === '' || $act->action === $action) && $act->need_response);
|
||||
// container()->set(ActionResponse::class, $response);
|
||||
container()->set(ActionResponse::class, $response);
|
||||
$handler->handleAll();
|
||||
return $response;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user