From d39d882a8a56d84b76bb407c3b99b82d6d2e4f40 Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期五, 27 十二月 2024 11:38:54 +0800 Subject: [PATCH] 修改分佣逻辑 --- ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/UserCouponController.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/UserCouponController.java b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/UserCouponController.java index 3428da9..da4254c 100644 --- a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/UserCouponController.java +++ b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/controller/UserCouponController.java @@ -121,7 +121,8 @@ Long userid = tokenService.getLoginUserApplet().getUserid(); AppUser byId = appUserService.getById(userid); - CouponInfo data = couponClient.detail(couponId).getData(); + R<CouponInfo> detail = couponClient.detail(couponId); + CouponInfo data = detail.getData(); //检验当前优惠券是否存在 if (data==null){ return R.fail("当前优惠券不存在,请刷新后重试"); -- Gitblit v1.7.1