修改龙珠充值
parent
60b3442a06
commit
c6edd8a6e1
|
|
@ -217,6 +217,11 @@ public class BuyGoodsNewLogic {
|
||||||
resultRes.setResultMsg("Welfare bag not found");
|
resultRes.setResultMsg("Welfare bag not found");
|
||||||
return resultRes;
|
return resultRes;
|
||||||
}
|
}
|
||||||
|
if(!bag.isBuy()){
|
||||||
|
resultRes.setResultMsg("bag limit");
|
||||||
|
LOGGER.error("sendGoods 礼包已购买, uid={}, goodId={}",uid, goodsId);
|
||||||
|
return resultRes;
|
||||||
|
}
|
||||||
ISession session = OnlineUserManager.getSessionByUid(uid);
|
ISession session = OnlineUserManager.getSessionByUid(uid);
|
||||||
if (session == null) {
|
if (session == null) {
|
||||||
Order order = new Order(uid, sdkGoodsId, openId, orderId, orderTime, amount);
|
Order order = new Order(uid, sdkGoodsId, openId, orderId, orderTime, amount);
|
||||||
|
|
@ -229,11 +234,6 @@ public class BuyGoodsNewLogic {
|
||||||
resultRes.setResultMsg("Session is null");
|
resultRes.setResultMsg("Session is null");
|
||||||
return resultRes;
|
return resultRes;
|
||||||
}
|
}
|
||||||
if(!bag.isBuy()){
|
|
||||||
resultRes.setResultMsg("bag limit");
|
|
||||||
LOGGER.error("sendGoods 礼包已购买, uid={}, goodId={}",uid, goodsId);
|
|
||||||
return resultRes;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 礼包购买
|
// 礼包购买
|
||||||
bag.buy();
|
bag.buy();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue