优化文件以及数据库备注

This commit is contained in:
evoxwht 2023-04-24 10:44:30 +08:00
parent 44ce2bf685
commit a4a6bd7f3d
2 changed files with 6 additions and 1 deletions

View File

@ -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) {

View File

@ -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');
}