git 2 years ago
parent
commit
a874321ce9
2 changed files with 4 additions and 2 deletions
  1. 1 0
      Home/Lib/Action/CronAction.class.php
  2. 3 2
      Home/Lib/Action/V1Action.class.php

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

@@ -32,6 +32,7 @@ class CronAction extends Action {
 					//删除本地dat文件
 					@unlink($path_parts['dirname'] . '/' . $path_parts['filename'] . '.dat');
 					$datRes = Zmcoding\FtpFile::getInstance($config)->up_file($zip, $tagetDat);
+					echo "datRes:".$datRes.PHP_EOL;
 					if ($datRes) {
 						$md5Res = Zmcoding\FtpFile::getInstance($config)->up_file($v,  $targetDir . '/' . $path_parts['basename']); //md5文件
 						if ($md5Res) {

+ 3 - 2
Home/Lib/Action/V1Action.class.php

@@ -95,8 +95,9 @@ class V1Action extends Action {
 					$fileName = $localDir . '/HC_' . $createTime . '.dat';
 					$runTime = time() - $timeFram;
 					$sum++;
-					//echo $sum . PHP_EOL;
-		
+					if($sum % 10000 ==0){
+						echo $sum . PHP_EOL;
+					}
 					if ($runTime < $fileTimeInterval) {
 						if ($sum % 50000 == 0) {
 							//echo 'start write routefile...' . PHP_EOL;