From adf749e8da2bfce006390b008f6b9e8606b62180 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期四, 28 八月 2025 17:02:30 +0800 Subject: [PATCH] update --- cloud-server-account/src/main/java/com/dsh/account/service/impl/VipPaymentServiceImpl.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cloud-server-account/src/main/java/com/dsh/account/service/impl/VipPaymentServiceImpl.java b/cloud-server-account/src/main/java/com/dsh/account/service/impl/VipPaymentServiceImpl.java index 639db2b..73654b5 100644 --- a/cloud-server-account/src/main/java/com/dsh/account/service/impl/VipPaymentServiceImpl.java +++ b/cloud-server-account/src/main/java/com/dsh/account/service/impl/VipPaymentServiceImpl.java @@ -250,16 +250,16 @@ switch (vip.getTimeType()) { case 1: // 天 - localDateTime.plusDays(time); + localDateTime = localDateTime.plusDays(time); break; case 2: // 月 - localDateTime.plusMonths(time); + localDateTime = localDateTime.plusMonths(time); break; case 3: // 年 - localDateTime.plusYears(time); + localDateTime = localDateTime.plusYears(time); break; } appUser.setIsVip(1); @@ -273,6 +273,7 @@ if (StringUtils.hasLength(couponJson)) { grantCoupon.setCouponJson(couponJson); } + grantCoupon.setVipId(vipPayment1.getVipId()); grantCoupon.setUserId(vipPayment1.getAppUserId()); grantCoupon.setVipPaymentId(vipPayment1.getId()); String ticketJson = vipPayment1.getTicketJson(); -- Gitblit v1.7.1