From c6edd8a6e11dbf660ab23df06a6584e2ce443beb Mon Sep 17 00:00:00 2001 From: "DESKTOP-C3M45P4\\dengdan" Date: Sun, 19 Apr 2026 09:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=BE=99=E7=8F=A0=E5=85=85?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java index c2a46f093..690e1464c 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/store/BuyGoodsNewLogic.java @@ -217,6 +217,11 @@ public class BuyGoodsNewLogic { resultRes.setResultMsg("Welfare bag not found"); return resultRes; } + if(!bag.isBuy()){ + resultRes.setResultMsg("bag limit"); + LOGGER.error("sendGoods 礼包已购买, uid={}, goodId={}",uid, goodsId); + return resultRes; + } ISession session = OnlineUserManager.getSessionByUid(uid); if (session == null) { Order order = new Order(uid, sdkGoodsId, openId, orderId, orderTime, amount); @@ -229,11 +234,6 @@ public class BuyGoodsNewLogic { resultRes.setResultMsg("Session is null"); return resultRes; } - if(!bag.isBuy()){ - resultRes.setResultMsg("bag limit"); - LOGGER.error("sendGoods 礼包已购买, uid={}, goodId={}",uid, goodsId); - return resultRes; - } // 礼包购买 bag.buy();