mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 05:04:51 +08:00
fix reversed priority
This commit is contained in:
parent
af26086019
commit
eb05cea443
@ -108,7 +108,7 @@ class CommandManualPlugin extends ZMPlugin
|
||||
$adjacent_annotations = $this->adjacent_annotations[$command_name] ?? [];
|
||||
|
||||
// 遍历工厂,直到找到一个返回非空的工厂
|
||||
foreach (self::$manual_factories as $factory) {
|
||||
foreach (array_reverse(self::$manual_factories) as $factory) {
|
||||
$manual = container()->call(
|
||||
$factory,
|
||||
[
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user