From 851563390fd708af9a4d1699d14597367606635b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=87=A1=E6=87=82?= Date: Tue, 7 Jun 2022 09:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=BD=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/database/config.php | 79 ++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 41 deletions(-) diff --git a/addons/database/config.php b/addons/database/config.php index 0bbf579..05e64a7 100644 --- a/addons/database/config.php +++ b/addons/database/config.php @@ -1,43 +1,40 @@ 'backupDir', - 'title' => '备份存放目录', - 'type' => 'string', - 'content' => - array(), - 'value' => '../data/', - 'rule' => 'required', - 'msg' => '', - 'tip' => '备份目录,请使用相对目录', - 'ok' => '', - 'extend' => '', - ), - array( - 'name' => 'backupIgnoreTables', - 'title' => '备份忽略的表', - 'type' => 'string', - 'content' => - array(), - 'value' => 'fa_admin_log', - 'rule' => '', - 'msg' => '', - 'tip' => '忽略备份的表,多个表以,进行分隔', - 'ok' => '', - 'extend' => '', - ), - array( - 'name' => '__tips__', - 'title' => '温馨提示', - 'type' => '', - 'content' => - array(), - 'value' => '请做好数据库离线备份工作,建议此插件仅用于开发阶段,项目正式上线建议卸载此插件', - 'rule' => '', - 'msg' => '', - 'tip' => '', - 'ok' => '', - 'extend' => '', - ), -); +return [ + [ + 'name' => 'backupDir', + 'title' => '备份存放目录', + 'type' => 'string', + 'content' => [], + 'value' => '../data/', + 'rule' => 'required', + 'msg' => '', + 'tip' => '备份目录,请使用相对目录', + 'ok' => '', + 'extend' => '', + ], + [ + 'name' => 'backupIgnoreTables', + 'title' => '备份忽略的表', + 'type' => 'string', + 'content' => [], + 'value' => 'fa_admin_log', + 'rule' => '', + 'msg' => '', + 'tip' => '忽略备份的表,多个表以,进行分隔', + 'ok' => '', + 'extend' => '', + ], + [ + 'name' => '__tips__', + 'title' => '温馨提示', + 'type' => '', + 'content' => [], + 'value' => '请做好数据库离线备份工作,建议此插件仅用于开发阶段,项目正式上线建议卸载此插件', + 'rule' => '', + 'msg' => '', + 'tip' => '', + 'ok' => '', + 'extend' => '', + ], +];