Commit 14e4a603d4767a85d11849f2605af172534f84ed

Authored by u123231312
1 parent 02efd024

no message

... ... @@ -94,6 +94,11 @@ class Template extends Common{
//打包zip
$rs = $zip->close();
}
if($rs==true){
$result['code']=1;
$result['msg']="打包好了!";
return $result;
}
return $rs;
}
... ...
... ... @@ -69,13 +69,13 @@
var loading = layer.load(1, {shade: [0.1, '#fff']});
$.post("{:url('PackzipDownload')}",{folder:folder,path:path,filename:filename},function(data){
layer.close(loading);
if(data==true){
if(data.code==1){
layer.alert(data.msg, {icon: 6}, function(index){
layer.close(index);
location.replace(location.href="{:url('package')}");
});
}else{
layer.alert(data.msg, {icon: 5}, function(index){
layer.alert(data, {icon: 5}, function(index){
layer.close(index);
});
}
... ...