作者 lyh

gx

@@ -172,6 +172,7 @@ class UpdateRoute extends Command @@ -172,6 +172,7 @@ 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 as $k => $v){ 174 foreach ($list as $k => $v){
  175 + echo date('Y-m-d H:i:s') . '产品id--1:'.$v['category_id'] . PHP_EOL;
175 if(empty($v['category_id'])){ 176 if(empty($v['category_id'])){
176 continue; 177 continue;
177 } 178 }