From a4a6bd7f3d7690800edbdd74c1d6e75b7950875a Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Mon, 24 Apr 2023 10:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E6=95=B0=E6=8D=AE=E5=BA=93=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/system/SystemDatabackupServices.php | 6 +++++- crmeb/app/services/system/log/SystemFileServices.php | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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'); }