From 3db45ab692716752f73ee25d4d9c0efddd899eff Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 12 Mar 2026 17:48:45 +0800 Subject: [PATCH] =?UTF-8?q?firstRecharge=E5=AD=97=E6=AE=B5=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gateway/user/UserRunProfileTransportGatewayImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/user/UserRunProfileTransportGatewayImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/user/UserRunProfileTransportGatewayImpl.java index 47d9fa87..b984d99b 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/user/UserRunProfileTransportGatewayImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/user/UserRunProfileTransportGatewayImpl.java @@ -132,8 +132,8 @@ public class UserRunProfileTransportGatewayImpl implements UserRunProfileTranspo private static void checkAndUpdateFirstCharge(UserRunProfile userRunProfile) { if (userRunProfile.getFirstRecharge() != null && userRunProfile.getFirstRecharge()) { - LocalDateTime createTime = userRunProfile.getCreateTime().toLocalDateTime(); - Duration duration = Duration.between(createTime, LocalDateTime.now()); + LocalDateTime createTime = userRunProfile.getFirstRechargeEndTime().toLocalDateTime(); + Duration duration = Duration.between(LocalDateTime.now(), createTime); if (duration.toDays() >= 7) { userRunProfile.setFirstRecharge(false); userRunProfile.setFirstRechargeEndTime(null);