Merge remote-tracking branch 'origin/master' into akun
正在显示
6 个修改的文件
包含
7 行增加
和
2 行删除
| @@ -64,6 +64,7 @@ class DeleteBlogCategory extends Command | @@ -64,6 +64,7 @@ class DeleteBlogCategory extends Command | ||
| 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(100); |
| 67 | + continue; | ||
| 67 | } | 68 | } |
| 68 | foreach ($list as $item){ | 69 | foreach ($list as $item){ |
| 69 | echo 'start:' . $item['id'] . PHP_EOL; | 70 | echo 'start:' . $item['id'] . PHP_EOL; |
| @@ -64,6 +64,7 @@ class DeleteCustomCategory extends Command | @@ -64,6 +64,7 @@ class DeleteCustomCategory extends Command | ||
| 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(100); |
| 67 | + continue; | ||
| 67 | } | 68 | } |
| 68 | foreach ($list as $item){ | 69 | foreach ($list as $item){ |
| 69 | echo 'start:' . $item['id'] . PHP_EOL; | 70 | echo 'start:' . $item['id'] . PHP_EOL; |
| @@ -64,6 +64,7 @@ class DeleteNewsCategory extends Command | @@ -64,6 +64,7 @@ class DeleteNewsCategory extends Command | ||
| 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(100); |
| 67 | + continue; | ||
| 67 | } | 68 | } |
| 68 | foreach ($list as $item){ | 69 | foreach ($list as $item){ |
| 69 | echo 'start:' . $item['id'] . PHP_EOL; | 70 | echo 'start:' . $item['id'] . PHP_EOL; |
| @@ -65,6 +65,7 @@ class DeleteProductCategory extends Command | @@ -65,6 +65,7 @@ class DeleteProductCategory extends Command | ||
| 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(100); |
| 68 | + continue; | ||
| 68 | } | 69 | } |
| 69 | foreach ($list as $item){ | 70 | foreach ($list as $item){ |
| 70 | echo 'start:' . $item['id'] . PHP_EOL; | 71 | echo 'start:' . $item['id'] . PHP_EOL; |
| @@ -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 | + continue; |
| 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 | } |
-
请 注册 或 登录 后发表评论