From 4594fae95486402c6f6488cec5d3ad13681386f9 Mon Sep 17 00:00:00 2001 From: jwj <86849180@qq.com> Date: Tue, 25 Jul 2023 10:49:21 +0800 Subject: [PATCH] =?UTF-8?q?Feat:=20=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=B0=E9=BB=98=E8=AE=A4=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/think/Console.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/think/Console.php b/src/think/Console.php index 91af08b28d..1a90a1ccba 100644 --- a/src/think/Console.php +++ b/src/think/Console.php @@ -93,6 +93,12 @@ public function __construct(protected App $app) //加载指令 $this->loadCommands(); + // 设置执行用户 + $user = $this->app->config->get('console.user'); + if (!empty($user)) { + $this->setUser($user); + } + $this->start(); }