正在显示
1 个修改的文件
包含
10 行增加
和
0 行删除
| @@ -444,11 +444,21 @@ class ProjectLogic extends BaseLogic | @@ -444,11 +444,21 @@ class ProjectLogic extends BaseLogic | ||
| 444 | $record['end_time'] = $record['expire_at']; // ✅ 写回原数据 | 444 | $record['end_time'] = $record['expire_at']; // ✅ 写回原数据 |
| 445 | // 重新计算剩余天数 | 445 | // 重新计算剩余天数 |
| 446 | $diff = (strtotime($record['expire_at']) - strtotime(date('Y-m-d'))) / (60 * 60 * 24); | 446 | $diff = (strtotime($record['expire_at']) - strtotime(date('Y-m-d'))) / (60 * 60 * 24); |
| 447 | + | ||
| 447 | if ($param['project_type'] == Project::PROJECT_TYPE_SEO) { | 448 | if ($param['project_type'] == Project::PROJECT_TYPE_SEO) { |
| 449 | + if($param['seo_remain_day'] > 0){ | ||
| 450 | + $param['deploy_build']['seo_service_duration'] = $diff + $param['deploy_build']['seo_service_duration']; | ||
| 451 | + }else{ | ||
| 448 | $param['deploy_build']['seo_service_duration'] = $diff + $param['bm_finish_remain_day']; | 452 | $param['deploy_build']['seo_service_duration'] = $diff + $param['bm_finish_remain_day']; |
| 453 | + } | ||
| 449 | } else { | 454 | } else { |
| 455 | + if($param['seo_remain_day'] > 0){ | ||
| 456 | + $param['deploy_build']['service_duration'] = $diff + $param['deploy_build']['service_duration']; | ||
| 457 | + }else{ | ||
| 450 | $param['deploy_build']['service_duration'] = $diff + $param['finish_remain_day']; | 458 | $param['deploy_build']['service_duration'] = $diff + $param['finish_remain_day']; |
| 451 | } | 459 | } |
| 460 | + | ||
| 461 | + } | ||
| 452 | } | 462 | } |
| 453 | break; // 找到后跳出循环 | 463 | break; // 找到后跳出循环 |
| 454 | } | 464 | } |
-
请 注册 或 登录 后发表评论