diff --git a/crmeb/app/services/system/SystemDatabackupServices.php b/crmeb/app/services/system/SystemDatabackupServices.php index 1d5e79a1b..90ed20369 100644 --- a/crmeb/app/services/system/SystemDatabackupServices.php +++ b/crmeb/app/services/system/SystemDatabackupServices.php @@ -53,6 +53,9 @@ class SystemDatabackupServices extends BaseServices public function getDataList() { $list = $this->dbBackup->dataList(); + foreach ($list as &$item) { + $item['is_edit'] = false; + } $count = count($list); return compact('list', 'count'); } @@ -69,6 +72,7 @@ class SystemDatabackupServices extends BaseServices $count = count($list); foreach ($list as $key => $f) { $list[$key]['EXTRA'] = ($f['EXTRA'] == 'auto_increment' ? '是' : ' '); + $list[$key]['is_edit'] = false; } return compact('list', 'count'); } @@ -91,7 +95,7 @@ class SystemDatabackupServices extends BaseServices { $tables = explode(',', $tables); $data = ''; - ini_set ("memory_limit","-1"); + ini_set("memory_limit", "-1"); foreach ($tables as $t) { $res = $this->dbBackup->backup($t, 0); if ($res == false && $res != 0) { diff --git a/crmeb/app/services/system/log/SystemFileServices.php b/crmeb/app/services/system/log/SystemFileServices.php index 8990fa77d..ee84f82b7 100644 --- a/crmeb/app/services/system/log/SystemFileServices.php +++ b/crmeb/app/services/system/log/SystemFileServices.php @@ -288,6 +288,7 @@ class SystemFileServices extends BaseServices $navList[$key]['pathname'] = $value['pathname']; $navList[$key]['contextmenu'] = true; $list[$key]['mark'] = $markList[str_replace(root_path(), '/', $value['pathname'])] ?? ''; + $list[$key]['is_edit'] = false; } return compact('dir', 'list', 'navList'); }