作者 李宇航

合并分支 'lyh-server' 到 'master'

变更数据



查看合并请求 !2937
@@ -208,7 +208,7 @@ class ProjectLogic extends BaseLogic @@ -208,7 +208,7 @@ class ProjectLogic extends BaseLogic
208 $this->fail('保存失败,请联系管理员'); 208 $this->fail('保存失败,请联系管理员');
209 } 209 }
210 } 210 }
211 - return $this->success(); 211 + return $this->success($this->param);
212 } 212 }
213 213
214 /** 214 /**
@@ -440,7 +440,7 @@ class ProjectLogic extends BaseLogic @@ -440,7 +440,7 @@ class ProjectLogic extends BaseLogic
440 foreach ($param['payment']['renewal_record'] as &$record) { 440 foreach ($param['payment']['renewal_record'] as &$record) {
441 if (!is_null($record['expire_at'] ?? null) && $record['expire_at'] === $maxExpireAt) { 441 if (!is_null($record['expire_at'] ?? null) && $record['expire_at'] === $maxExpireAt) {
442 // 如果 end_time 不存在或与 expire_at 不一致,则更新 442 // 如果 end_time 不存在或与 expire_at 不一致,则更新
443 - if (!isset($record['end_time']) || $record['end_time'] != $record['expire_at']) { 443 + if (!isset($record['end_time']) || ($record['end_time'] != $record['expire_at'])) {
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);