mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 20:17:24 +08:00
improve update remove menu log
This commit is contained in:
@@ -327,10 +327,10 @@ class Update extends Install
|
|||||||
|
|
||||||
private function removeMenu(array $menus, array $tables = ['sysoppanel', 'adminpanel', 'modpanel'])
|
private function removeMenu(array $menus, array $tables = ['sysoppanel', 'adminpanel', 'modpanel'])
|
||||||
{
|
{
|
||||||
|
$this->doLog("[REMOVE MENU]: " . json_encode($menus));
|
||||||
if (empty($menus)) {
|
if (empty($menus)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$this->doLog("[REMOVE MENU]: " . json_encode($menus));
|
|
||||||
foreach ($tables as $table) {
|
foreach ($tables as $table) {
|
||||||
NexusDB::table($table)->whereIn('url', $menus)->delete();
|
NexusDB::table($table)->whereIn('url', $menus)->delete();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user