git 2 years ago
parent
commit
b2c74a8786
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Home/Lib/Action/CronAction.class.php

+ 1 - 1
Home/Lib/Action/CronAction.class.php

@@ -25,7 +25,7 @@ class CronAction extends Action {
 				}else{
 					$zip = $this->zip($path_parts['filename'], $path_parts['dirname']);
 				}
-				if ($zip) {//压缩完成
+				if ($zip && filesize($zip) > 0) {//压缩完成
 					//echo '压缩用时:'.(time()-$start).PHP_EOL;
 					$tagetDat = $targetDir . '/' . $path_parts['filename'] . '.zip';
 					//echo $tagetDat . PHP_EOL;