数据库备份

This commit is contained in:
xurongyao 2018-09-17 20:18:48 +08:00
parent 44066154fc
commit 1236ff891f
2 changed files with 8 additions and 5 deletions

View File

@ -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 ? '修复成功':'修复失败');
}
}

View File

@ -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('请选择');
}
},