mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-06 22:05:33 +00:00
数据库备份
This commit is contained in:
parent
0039536d3a
commit
a8ca5210f4
@ -120,7 +120,7 @@ class SystemDatabackup extends AuthController
|
|||||||
{
|
{
|
||||||
$part = $request->post('part')?:null;
|
$part = $request->post('part')?:null;
|
||||||
$start = $request->post('start')?:null;
|
$start = $request->post('start')?:null;
|
||||||
$time = strtotime($request->post('feilname'));
|
$time = strtotime($request->post('time'));
|
||||||
$db = $this->DB;
|
$db = $this->DB;
|
||||||
if(is_numeric($time) && is_null($part) && is_null($start)){
|
if(is_numeric($time) && is_null($part) && is_null($start)){
|
||||||
$list= $db->getFile('timeverif',$time);
|
$list= $db->getFile('timeverif',$time);
|
||||||
|
|||||||
@ -71,7 +71,7 @@
|
|||||||
};
|
};
|
||||||
layList.basePost(layList.Url({a:'import'}),data,function (res) {
|
layList.basePost(layList.Url({a:'import'}),data,function (res) {
|
||||||
if(res.code){
|
if(res.code){
|
||||||
layList.msg(res.msg);
|
setTimeout(ipmosrting(res.data.time,res.data.part,res.data.start),2000);
|
||||||
}else{
|
}else{
|
||||||
layList.msg(res.msg);
|
layList.msg(res.msg);
|
||||||
return false;
|
return false;
|
||||||
@ -87,9 +87,6 @@
|
|||||||
case 'import':
|
case 'import':
|
||||||
layer.confirm('真的倒入该备份吗?', function(index){
|
layer.confirm('真的倒入该备份吗?', function(index){
|
||||||
ipmosrting(data.time);
|
ipmosrting(data.time);
|
||||||
layList.basePost(layList.Url({a:'import'}),{feilname:data.time},function (res) {
|
|
||||||
setTimeout(ipmosrting(res.data.time,res.data.part,res.data.start),2000);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'delFile':
|
case 'delFile':
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user