作者 lyh

gx

... ... @@ -63,7 +63,7 @@ class DeleteBlogCategory extends Command
$noticeLogModel = new NoticeLog();
$list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_BLOG_CATEGORY],'id',['*'],'asc',100);
if(empty($list)){
sleep(100);
sleep(10);
continue;
}
foreach ($list as $item){
... ...
... ... @@ -63,7 +63,7 @@ class DeleteCustomCategory extends Command
$noticeLogModel = new NoticeLog();
$list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_CUSTOM_CATEGORY],'id',['*'],'asc',100);
if(empty($list)){
sleep(100);
sleep(10);
continue;
}
foreach ($list as $item){
... ...
... ... @@ -63,7 +63,7 @@ class DeleteNewsCategory extends Command
$noticeLogModel = new NoticeLog();
$list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_NEWS_CATEGORY],'id',['*'],'asc',100);
if(empty($list)){
sleep(100);
sleep(10);
continue;
}
foreach ($list as $item){
... ...
... ... @@ -64,7 +64,7 @@ class DeleteProductCategory extends Command
$noticeLogModel = new NoticeLog();
$list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_PRODUCT_CATEGORY],'id',['*'],'asc',100);
if(empty($list)){
sleep(100);
sleep(10);
continue;
}
foreach ($list as $item){
... ...
... ... @@ -63,7 +63,7 @@ class ReplaceHtml extends Command
$replaceHtmlModel = new TemplateReplaceHtml();
$replaceHtmlList = $replaceHtmlModel->list(['status'=>$replaceHtmlModel::STATUS]);
if(empty($replaceHtmlList)){
sleep(100);
sleep(20);
continue;
}
foreach ($replaceHtmlList as $v){
... ... @@ -79,7 +79,7 @@ class ReplaceHtml extends Command
echo '结束'.PHP_EOL;
DB::disconnect('custom_mysql');
}
sleep(50);
sleep(10);
return true;
}
}
... ...