正在显示
5 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -63,7 +63,7 @@ class DeleteBlogCategory extends Command | @@ -63,7 +63,7 @@ class DeleteBlogCategory extends Command | ||
| 63 | $noticeLogModel = new NoticeLog(); | 63 | $noticeLogModel = new NoticeLog(); |
| 64 | $list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_BLOG_CATEGORY],'id',['*'],'asc',100); | 64 | $list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_BLOG_CATEGORY],'id',['*'],'asc',100); |
| 65 | if(empty($list)){ | 65 | if(empty($list)){ |
| 66 | - sleep(100); | 66 | + sleep(10); |
| 67 | continue; | 67 | continue; |
| 68 | } | 68 | } |
| 69 | foreach ($list as $item){ | 69 | foreach ($list as $item){ |
| @@ -63,7 +63,7 @@ class DeleteCustomCategory extends Command | @@ -63,7 +63,7 @@ class DeleteCustomCategory extends Command | ||
| 63 | $noticeLogModel = new NoticeLog(); | 63 | $noticeLogModel = new NoticeLog(); |
| 64 | $list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_CUSTOM_CATEGORY],'id',['*'],'asc',100); | 64 | $list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_CUSTOM_CATEGORY],'id',['*'],'asc',100); |
| 65 | if(empty($list)){ | 65 | if(empty($list)){ |
| 66 | - sleep(100); | 66 | + sleep(10); |
| 67 | continue; | 67 | continue; |
| 68 | } | 68 | } |
| 69 | foreach ($list as $item){ | 69 | foreach ($list as $item){ |
| @@ -63,7 +63,7 @@ class DeleteNewsCategory extends Command | @@ -63,7 +63,7 @@ class DeleteNewsCategory extends Command | ||
| 63 | $noticeLogModel = new NoticeLog(); | 63 | $noticeLogModel = new NoticeLog(); |
| 64 | $list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_NEWS_CATEGORY],'id',['*'],'asc',100); | 64 | $list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_NEWS_CATEGORY],'id',['*'],'asc',100); |
| 65 | if(empty($list)){ | 65 | if(empty($list)){ |
| 66 | - sleep(100); | 66 | + sleep(10); |
| 67 | continue; | 67 | continue; |
| 68 | } | 68 | } |
| 69 | foreach ($list as $item){ | 69 | foreach ($list as $item){ |
| @@ -64,7 +64,7 @@ class DeleteProductCategory extends Command | @@ -64,7 +64,7 @@ class DeleteProductCategory extends Command | ||
| 64 | $noticeLogModel = new NoticeLog(); | 64 | $noticeLogModel = new NoticeLog(); |
| 65 | $list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_PRODUCT_CATEGORY],'id',['*'],'asc',100); | 65 | $list = $noticeLogModel->list(['status'=>NoticeLog::STATUS_PENDING,'type'=>NoticeLog::DELETE_PRODUCT_CATEGORY],'id',['*'],'asc',100); |
| 66 | if(empty($list)){ | 66 | if(empty($list)){ |
| 67 | - sleep(100); | 67 | + sleep(10); |
| 68 | continue; | 68 | continue; |
| 69 | } | 69 | } |
| 70 | foreach ($list as $item){ | 70 | foreach ($list as $item){ |
| @@ -63,7 +63,7 @@ class ReplaceHtml extends Command | @@ -63,7 +63,7 @@ class ReplaceHtml extends Command | ||
| 63 | $replaceHtmlModel = new TemplateReplaceHtml(); | 63 | $replaceHtmlModel = new TemplateReplaceHtml(); |
| 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(20); |
| 67 | continue; | 67 | continue; |
| 68 | } | 68 | } |
| 69 | foreach ($replaceHtmlList as $v){ | 69 | foreach ($replaceHtmlList as $v){ |
| @@ -79,7 +79,7 @@ class ReplaceHtml extends Command | @@ -79,7 +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 | + sleep(10); |
| 83 | return true; | 83 | return true; |
| 84 | } | 84 | } |
| 85 | } | 85 | } |
-
请 注册 或 登录 后发表评论