作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -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 }
@@ -66,7 +66,7 @@ class ReplaceHtmlLog extends Command @@ -66,7 +66,7 @@ class ReplaceHtmlLog extends Command
66 echo '结束'.PHP_EOL; 66 echo '结束'.PHP_EOL;
67 } 67 }
68 } 68 }
69 - sleep(5); 69 + sleep(20);
70 return true; 70 return true;
71 } 71 }
72 72