This commit is contained in:
crazywhalecc
2022-08-03 16:37:26 +08:00
parent 90de54c6a3
commit 2c1a158d3e
10 changed files with 13 additions and 11 deletions

View File

@@ -70,7 +70,7 @@ class OnManagerStart implements SwooleEvent
}
if (Framework::$argv['polling-watch']) {
self::$watch_tick_id = swoole_timer_tick(3000, function () use ($server) {
$data = (DataProvider::scanDirFiles(DataProvider::getSourceRootDir() . '/src/'));
$data = DataProvider::scanDirFiles(DataProvider::getSourceRootDir() . '/src/');
$hash = md5('');
foreach ($data as $file) {
$hash = md5($hash . md5_file($file));