From ec2e9d15da0b196267a6b490bbe765b408d273f5 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期四, 28 八月 2025 20:14:02 +0800 Subject: [PATCH] bug修改 --- cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java b/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java index 228d6a4..b491797 100644 --- a/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java +++ b/cloud-server-account/src/main/java/com/dsh/account/controller/AppUserController.java @@ -474,15 +474,26 @@ VipPaymentVO res = new VipPaymentVO(); res.setHeadImg(appUser.getHeadImg()); res.setName(appUser.getName()); - res.setIsVip(appUser.getIsVip()); + res.setVipEndTime(appUser.getVipEndTime()); + if (appUser.getVipEndTime()==null){ + res.setIsVip(0); + }else if (appUser.getVipEndTime().before(new Date())){ + res.setIsVip(0); + }else{ + res.setIsVip(1); + } + appUserService.updateById(appUser); List<Vip> vips = vipClient.listAll(); res.setVipList(vips); + + return ResultUtil.success(res); + } catch (Exception e) { e.printStackTrace(); return ResultUtil.runErr(); } - return ResultUtil.success(); } + // // /** // * 购买年度会员支付微信回调V3版本回调 -- Gitblit v1.7.1