From 526d728a4fa9eafc7f612b46defc6a0f34c48dd7 Mon Sep 17 00:00:00 2001 From: zhaoxiang Date: Wed, 24 Feb 2021 16:21:49 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E5=88=9D=E5=A7=8B=E5=8C=96=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/command/AutoBuildFile.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/command/AutoBuildFile.php b/app/command/AutoBuildFile.php index b329c2e..4afed4e 100644 --- a/app/command/AutoBuildFile.php +++ b/app/command/AutoBuildFile.php @@ -32,6 +32,10 @@ class AutoBuildFile extends Command { if ($dsn['control']) { $dsn['name'] = $this->getControlName($output); + + $output->comment('Please choose module (1:admin;2:api, default 1):'); + $input = trim(fgets(fopen('php://stdin', 'r'))); + $dsn['module'] = strlen($input) ? $input : 1; } $output->comment('Do you need to build a menu? 1 or 0 (default 1):'); @@ -60,10 +64,6 @@ class AutoBuildFile extends Command { $dsn['table'] = strlen($input) ? $input : 0; } - $output->comment('Please choose module (1:admin;2:api, default 1):'); - $input = trim(fgets(fopen('php://stdin', 'r'))); - $dsn['module'] = strlen($input) ? $input : 1; - return $dsn; }