作者 lyh

gx

@@ -172,7 +172,6 @@ class UpdateRoute extends Command @@ -172,7 +172,6 @@ class UpdateRoute extends Command
172 while ($num > 0){ 172 while ($num > 0){
173 $list = $product->lists(['status'=>1],$num,1000); 173 $list = $product->lists(['status'=>1],$num,1000);
174 foreach ($list['list'] as $k => $v){ 174 foreach ($list['list'] as $k => $v){
175 - echo date('Y-m-d H:i:s') . '产品id--1:'.$v['category_id'] . PHP_EOL;  
176 if(empty($v['category_id'])){ 175 if(empty($v['category_id'])){
177 continue; 176 continue;
178 } 177 }