modify mysql result

This commit is contained in:
2022-04-29 14:49:29 +08:00
parent af768725d8
commit 91aae64512
2 changed files with 59 additions and 60 deletions
+5 -6
View File
@@ -51,16 +51,15 @@ class Inotify extends BaseProcess
set_exception_handler([$this, 'error']); set_exception_handler([$this, 'error']);
if (!extension_loaded('inotify')) { if (!extension_loaded('inotify')) {
Timer::tick(1000, function ($cid) { while (true) {
if ($this->isStop()) { if ($this->isStop()) {
Timer::clear($cid); break;
}
sleep(1);
} }
});
return; return;
} }
$this->dirs = Config::get('reload.inotify', []);
$this->dirs = Config::get('inotify', []);
$this->start(); $this->start();
} }
+2 -2
View File
@@ -79,9 +79,9 @@ class ServerCommand extends Command
* @throws ConfigException * @throws ConfigException
* @throws \ReflectionException * @throws \ReflectionException
*/ */
protected function scan_file() protected function scan_file(): void
{ {
$config = Config::get('scanner', []); $config = Config::get('reload.scanner', []);
if (is_array($config)) foreach ($config as $key => $value) { if (is_array($config)) foreach ($config as $key => $value) {
scan_directory($value, $key); scan_directory($value, $key);
} }