firstRecharge字段修复

This commit is contained in:
tianfeng 2026-03-12 17:48:45 +08:00
parent 9f6e55d871
commit 3db45ab692

View File

@ -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);