作者 lyh

gx脚本执行时间

@@ -79,9 +79,9 @@ class RemainDay extends Command @@ -79,9 +79,9 @@ class RemainDay extends Command
79 $remain_day = $item['deploy_build']['service_duration'] + $item->pause_days - floor($diff / (60 * 60 * 24)); 79 $remain_day = $item['deploy_build']['service_duration'] + $item->pause_days - floor($diff / (60 * 60 * 24));
80 }else{ 80 }else{
81 if($item['type'] == Project::TYPE_TWO){ 81 if($item['type'] == Project::TYPE_TWO){
82 - $compliance_day = $item->finish_remain_day ?? 0;  
83 - if($compliance_day == 0){  
84 - $item->pause_days = 0; 82 + $compliance_day = ($item->finish_remain_day ?? 0);
  83 + if($item->finish_remain_day < $item->pause_days){
  84 + $item->pause_days = $item->finish_remain_day;
85 } 85 }
86 $remain_day = $item['deploy_build']['service_duration'] + $item->pause_days - $compliance_day; 86 $remain_day = $item['deploy_build']['service_duration'] + $item->pause_days - $compliance_day;
87 }else{ 87 }else{