Commit 14e4a603d4767a85d11849f2605af172534f84ed

Authored by u123231312
1 parent 02efd024

no message

@@ -94,6 +94,11 @@ class Template extends Common{ @@ -94,6 +94,11 @@ class Template extends Common{
94 //打包zip 94 //打包zip
95 $rs = $zip->close(); 95 $rs = $zip->close();
96 } 96 }
  97 + if($rs==true){
  98 + $result['code']=1;
  99 + $result['msg']="打包好了!";
  100 + return $result;
  101 + }
97 return $rs; 102 return $rs;
98 } 103 }
99 104
@@ -69,13 +69,13 @@ @@ -69,13 +69,13 @@
69 var loading = layer.load(1, {shade: [0.1, '#fff']}); 69 var loading = layer.load(1, {shade: [0.1, '#fff']});
70 $.post("{:url('PackzipDownload')}",{folder:folder,path:path,filename:filename},function(data){ 70 $.post("{:url('PackzipDownload')}",{folder:folder,path:path,filename:filename},function(data){
71 layer.close(loading); 71 layer.close(loading);
72 - if(data==true){ 72 + if(data.code==1){
73 layer.alert(data.msg, {icon: 6}, function(index){ 73 layer.alert(data.msg, {icon: 6}, function(index){
74 layer.close(index); 74 layer.close(index);
75 location.replace(location.href="{:url('package')}"); 75 location.replace(location.href="{:url('package')}");
76 }); 76 });
77 }else{ 77 }else{
78 - layer.alert(data.msg, {icon: 5}, function(index){ 78 + layer.alert(data, {icon: 5}, function(index){
79 layer.close(index); 79 layer.close(index);
80 }); 80 });
81 } 81 }