From 1236ff891fa2c571839ef53ee55e87e4f6835103 Mon Sep 17 00:00:00 2001 From: xurongyao Date: Mon, 17 Sep 2018 20:18:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/system/SystemDatabackup.php | 5 ++++- application/admin/view/system/system_databackup/index.php | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/application/admin/controller/system/SystemDatabackup.php b/application/admin/controller/system/SystemDatabackup.php index 3ca4a597..6d6548ab 100644 --- a/application/admin/controller/system/SystemDatabackup.php +++ b/application/admin/controller/system/SystemDatabackup.php @@ -59,6 +59,9 @@ class SystemDatabackup extends AuthController */ public function repair(Request $request = null) { - return Json::successful($status==0 ? '禁用成功':'解禁成功'); + $tables = $request->post('tables/a'); + $db= new Backup(); + $res = $db->repair($tables); + return Json::successful($res ? '修复成功':'修复失败'); } } diff --git a/application/admin/view/system/system_databackup/index.php b/application/admin/view/system/system_databackup/index.php index 1c2897de..3e39e198 100644 --- a/application/admin/view/system/system_databackup/index.php +++ b/application/admin/view/system/system_databackup/index.php @@ -55,10 +55,10 @@ if(tables.length){ layList.basePost(layList.Url({a:'optimize'}),{tables:tables},function (res) { layList.msg(res.msg); - layList.reload(); +// layList.reload(); }); }else{ - layList.msg('请选择要封禁的会员'); + layList.msg('请选择表'); } }, repair:function () { @@ -66,10 +66,10 @@ if(tables.length){ layList.basePost(layList.Url({a:'repair'}),{tables:tables},function (res) { layList.msg(res.msg); - layList.reload(); +// layList.reload(); }); }else{ - layList.msg('请选择要封禁的会员'); + layList.msg('请选择表'); } },