mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 00:25:35 +08:00
fix a bug
This commit is contained in:
@@ -160,7 +160,7 @@ class Console
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function listenConsole() {
|
static function listenConsole() {
|
||||||
if (in_array('--disable-console-input', FrameworkLoader::$argv)) {
|
if (in_array('--disable-console-input', FrameworkLoader::$argv) || in_array('--debug-mode', FrameworkLoader::$argv)) {
|
||||||
self::info("ConsoleCommand disabled.");
|
self::info("ConsoleCommand disabled.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user