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