mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-20 01:12:50 +00:00
数据库备份
This commit is contained in:
parent
44066154fc
commit
1236ff891f
@ -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 ? '修复成功':'修复失败');
|
||||
}
|
||||
}
|
||||
|
||||
@ -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('请选择表');
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user