|
...
|
...
|
@@ -444,10 +444,20 @@ class ProjectLogic extends BaseLogic |
|
|
|
$record['end_time'] = $record['expire_at']; // ✅ 写回原数据
|
|
|
|
// 重新计算剩余天数
|
|
|
|
$diff = (strtotime($record['expire_at']) - strtotime(date('Y-m-d'))) / (60 * 60 * 24);
|
|
|
|
|
|
|
|
if ($param['project_type'] == Project::PROJECT_TYPE_SEO) {
|
|
|
|
$param['deploy_build']['seo_service_duration'] = $diff + $param['bm_finish_remain_day'];
|
|
|
|
if($param['seo_remain_day'] > 0){
|
|
|
|
$param['deploy_build']['seo_service_duration'] = $diff + $param['deploy_build']['seo_service_duration'];
|
|
|
|
}else{
|
|
|
|
$param['deploy_build']['seo_service_duration'] = $diff + $param['bm_finish_remain_day'];
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$param['deploy_build']['service_duration'] = $diff + $param['finish_remain_day'];
|
|
|
|
if($param['seo_remain_day'] > 0){
|
|
|
|
$param['deploy_build']['service_duration'] = $diff + $param['deploy_build']['service_duration'];
|
|
|
|
}else{
|
|
|
|
$param['deploy_build']['service_duration'] = $diff + $param['finish_remain_day'];
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break; // 找到后跳出循环
|
...
|
...
|
|