作者 lyh

gx

@@ -64,7 +64,7 @@ class ReplaceHtml extends Command @@ -64,7 +64,7 @@ class ReplaceHtml extends Command
64 $replaceHtmlList = $replaceHtmlModel->list(['status'=>$replaceHtmlModel::STATUS]); 64 $replaceHtmlList = $replaceHtmlModel->list(['status'=>$replaceHtmlModel::STATUS]);
65 if(empty($replaceHtmlList)){ 65 if(empty($replaceHtmlList)){
66 sleep(100); 66 sleep(100);
67 - return true; 67 + break;
68 } 68 }
69 foreach ($replaceHtmlList as $v){ 69 foreach ($replaceHtmlList as $v){
70 ProjectServer::useProject($v['project_id']); 70 ProjectServer::useProject($v['project_id']);
@@ -79,6 +79,7 @@ class ReplaceHtml extends Command @@ -79,6 +79,7 @@ class ReplaceHtml extends Command
79 echo '结束'.PHP_EOL; 79 echo '结束'.PHP_EOL;
80 DB::disconnect('custom_mysql'); 80 DB::disconnect('custom_mysql');
81 } 81 }
  82 + sleep(50);
82 return true; 83 return true;
83 } 84 }
84 } 85 }