正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -35,7 +35,7 @@ class RemainDay extends Command | @@ -35,7 +35,7 @@ class RemainDay extends Command | ||
| 35 | * 按照达标天数收费的项目(白帽) | 35 | * 按照达标天数收费的项目(白帽) |
| 36 | */ | 36 | */ |
| 37 | protected $bm_projectId = [ | 37 | protected $bm_projectId = [ |
| 38 | - 4247,4299,4310,4215,4038,4084,4148 | 38 | + 4247,4299,4310,4215,4038,4084,4148,4178 |
| 39 | ]; | 39 | ]; |
| 40 | 40 | ||
| 41 | 41 | ||
| @@ -83,7 +83,7 @@ class RemainDay extends Command | @@ -83,7 +83,7 @@ class RemainDay extends Command | ||
| 83 | * @time :2025/4/2 10:48 | 83 | * @time :2025/4/2 10:48 |
| 84 | */ | 84 | */ |
| 85 | public function saveRemainDay(){ | 85 | public function saveRemainDay(){ |
| 86 | - $list = $this->project->list(['extend_type'=>Project::TYPE_ZERO,'type'=>['in',[Project::TYPE_TWO,Project::TYPE_THREE,Project::TYPE_FOUR,Project::TYPE_SIX]]],'id',['id','type','uptime','remain_day','is_remain_today','pause_days','finish_remain_day','bm_finish_remain_day']); | 86 | + $list = $this->project->list(['extend_type'=>Project::TYPE_ZERO,'type'=>['in',[Project::TYPE_TWO,Project::TYPE_THREE,Project::TYPE_FOUR,Project::TYPE_SIX]]],'id',['id','type','level','uptime','remain_day','is_remain_today','pause_days','finish_remain_day','bm_finish_remain_day']); |
| 87 | foreach ($list as $item){ | 87 | foreach ($list as $item){ |
| 88 | $deploy_build = $this->deployBuild->read(['project_id'=>$item['id']],['service_duration','seo_service_duration','plan','seo_plan']); | 88 | $deploy_build = $this->deployBuild->read(['project_id'=>$item['id']],['service_duration','seo_service_duration','plan','seo_plan']); |
| 89 | echo 'start->项目id:' . $item['id'] . '执行时间:'. date('Y-m-d H:i:s') . PHP_EOL; | 89 | echo 'start->项目id:' . $item['id'] . '执行时间:'. date('Y-m-d H:i:s') . PHP_EOL; |
| @@ -120,7 +120,7 @@ class RemainDay extends Command | @@ -120,7 +120,7 @@ class RemainDay extends Command | ||
| 120 | //白帽版本的系统 | 120 | //白帽版本的系统 |
| 121 | if($deploy_build['seo_plan'] == 1){ | 121 | if($deploy_build['seo_plan'] == 1){ |
| 122 | if($deploy_build['seo_service_duration'] != 0){ | 122 | if($deploy_build['seo_service_duration'] != 0){ |
| 123 | - if(in_array($item['id'],$this->bm_projectId)){ | 123 | + if(in_array($item['id'],$this->bm_projectId) || (strpos($item['level'], '19') !== false)){ |
| 124 | $compliance_day = (int)$item['bm_finish_remain_day']; | 124 | $compliance_day = (int)$item['bm_finish_remain_day']; |
| 125 | $seo_remain_day = $deploy_build['seo_service_duration'] - (int)$item['bm_finish_remain_day']; | 125 | $seo_remain_day = $deploy_build['seo_service_duration'] - (int)$item['bm_finish_remain_day']; |
| 126 | }else{ | 126 | }else{ |
-
请 注册 或 登录 后发表评论