From 6fe8e4101ab7f64ce031294aba0dbca3b038506c Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 13 Nov 2025 18:08:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=81=AB=E7=AE=AD=E8=83=BD=E9=87=8F=E4=B8=8D?= =?UTF-8?q?=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/red/circle/other/domain/rocket/RocketStatus.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/rocket/RocketStatus.java b/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/rocket/RocketStatus.java index 5927a5fc..4b486555 100644 --- a/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/rocket/RocketStatus.java +++ b/rc-service/rc-service-other/other-domain/src/main/java/com/red/circle/other/domain/rocket/RocketStatus.java @@ -148,10 +148,13 @@ public class RocketStatus { overflowEnergy = 0L; } + // 保留当前能量值,不清空 + long preservedEnergy = this.currentEnergy; + // 升级到下一级 this.level = nextLevel; this.maxEnergy = nextConfig.getMaxEnergy(); - this.currentEnergy = overflowEnergy; // 保留溢出能量 + this.currentEnergy = preservedEnergy; // 完全保留当前能量 this.status = RocketStatusEnum.CHARGING; // 清空贡献者(新一轮)