|
...
|
...
|
@@ -208,7 +208,7 @@ class ProjectLogic extends BaseLogic |
|
|
|
$this->fail('保存失败,请联系管理员');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
return $this->success($this->param);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -440,7 +440,7 @@ class ProjectLogic extends BaseLogic |
|
|
|
foreach ($param['payment']['renewal_record'] as &$record) {
|
|
|
|
if (!is_null($record['expire_at'] ?? null) && $record['expire_at'] === $maxExpireAt) {
|
|
|
|
// 如果 end_time 不存在或与 expire_at 不一致,则更新
|
|
|
|
if (!isset($record['end_time']) || $record['end_time'] != $record['expire_at']) {
|
|
|
|
if (!isset($record['end_time']) || ($record['end_time'] != $record['expire_at'])) {
|
|
|
|
$record['end_time'] = $record['expire_at']; // ✅ 写回原数据
|
|
|
|
// 重新计算剩余天数
|
|
|
|
$diff = (strtotime($record['expire_at']) - strtotime(date('Y-m-d'))) / (60 * 60 * 24);
|
...
|
...
|
|