后台未启用消息队列还提示要开启消息队列提示修复

This commit is contained in:
evoxwht 2023-05-09 16:00:37 +08:00
parent 087cbb8c1a
commit c65ce97a6c

View File

@ -30,6 +30,7 @@ class AdminLoginListener
$path = root_path('runtime') . '.queue';
$content = file_get_contents($path);
$res = $key === $content;
if (sys_config('queue_open', 0) == 0) $res = true;
unlink($path);
} catch (\Throwable $e) {
}