作者 lyh

变更数据

@@ -166,11 +166,12 @@ class RemainDay extends Command @@ -166,11 +166,12 @@ class RemainDay extends Command
166 $geoCountModel = new GeoCount(); 166 $geoCountModel = new GeoCount();
167 $is_qualify = $geoCountModel->where('project_id', $item['id'])->orderBy('id', 'desc')->value('is_qualify'); 167 $is_qualify = $geoCountModel->where('project_id', $item['id'])->orderBy('id', 'desc')->value('is_qualify');
168 if($compliance_day > 0 && $is_qualify > 0){ 168 if($compliance_day > 0 && $is_qualify > 0){
169 - $compliance_day = 1;  
170 - } 169 + $remain_day = $item['remain_day'] - 1;
171 } 170 }
  171 + }else{
172 $remain_day = $deploy_build['service_duration'] - $compliance_day; 172 $remain_day = $deploy_build['service_duration'] - $compliance_day;
173 } 173 }
  174 + }
174 }else{ 175 }else{
175 //普通建站项目 176 //普通建站项目
176 if($item['uptime']){ 177 if($item['uptime']){