improve update remove menu log

This commit is contained in:
xiaomlove
2022-11-26 02:52:36 +08:00
parent 057fadfe99
commit a52a593f00

View File

@@ -327,10 +327,10 @@ class Update extends Install
private function removeMenu(array $menus, array $tables = ['sysoppanel', 'adminpanel', 'modpanel'])
{
$this->doLog("[REMOVE MENU]: " . json_encode($menus));
if (empty($menus)) {
return;
}
$this->doLog("[REMOVE MENU]: " . json_encode($menus));
foreach ($tables as $table) {
NexusDB::table($table)->whereIn('url', $menus)->delete();
}