作者 lyh

gx脚本更新路由

@@ -83,8 +83,8 @@ class UpdateBuildConfiguration extends Command @@ -83,8 +83,8 @@ class UpdateBuildConfiguration extends Command
83 $productModel = new Product(); 83 $productModel = new Product();
84 $product_list = $productModel->formatQuery(['status'=>1,'content'=>['!=',null]])->count(); 84 $product_list = $productModel->formatQuery(['status'=>1,'content'=>['!=',null]])->count();
85 $detailModel = new Detail(); 85 $detailModel = new Detail();
86 - $lists = $detailModel->list();  
87 - if(($product_list > 0) && empty($lists)){ 86 + $lists = $detailModel->count();
  87 + if(($product_list > 0) && ($lists == 0)){
88 echo date('Y-m-d H:i:s') . '需要处理的项目:'.$project_id . PHP_EOL; 88 echo date('Y-m-d H:i:s') . '需要处理的项目:'.$project_id . PHP_EOL;
89 } 89 }
90 // Detail::truncate(); 90 // Detail::truncate();