正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -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(); |
-
请 注册 或 登录 后发表评论