作者 lyh

gx

... ... @@ -40,7 +40,7 @@ class DeleteProductCategory extends Command
*
* @var string
*/
protected $description = '删除产品关键字';
protected $description = '删除产品分类';
/**
* Create a new command instance.
... ...
... ... @@ -62,7 +62,10 @@ class ReplaceHtml extends Command
while (true){
$replaceHtmlModel = new TemplateReplaceHtml();
$replaceHtmlList = $replaceHtmlModel->list(['status'=>$replaceHtmlModel::STATUS]);
if(!empty($replaceHtmlList)){
if(empty($replaceHtmlList)){
sleep(100);
return true;
}
foreach ($replaceHtmlList as $v){
ProjectServer::useProject($v['project_id']);
echo '开始,任务id:'.$v['id'].PHP_EOL;
... ... @@ -76,8 +79,6 @@ class ReplaceHtml extends Command
echo '结束'.PHP_EOL;
DB::disconnect('custom_mysql');
}
}
sleep(5);
return true;
}
}
... ...