现金点券购买礼包,报错提示

master_zzxx
grimm 2024-05-13 17:29:07 +08:00
parent 1ccd8f470f
commit 93e91677af
1 changed files with 4 additions and 4 deletions

View File

@ -106,7 +106,7 @@ public class BuyGoodsNewLogic {
SRechargeCommodityNewConfig sRechargeCommodityConfig = SRechargeCommodityNewConfig.getConfigById(Integer.parseInt(goodsId));
int uid = session.getUid();
if (sRechargeCommodityConfig == null){
throw new ErrorCodeException(ErrorCode.CFG_NULL);
throw new ErrorCodeException(ErrorCode.GOOD_INFO_NOT);
}
int price = (int)sRechargeCommodityConfig.getPrice()*100;
if (!GameApplication.serverProperties.isDebug() && price != 0){
@ -123,7 +123,7 @@ public class BuyGoodsNewLogic {
public static void vouchersBuyGoods(ISession iSession, int goodsId) throws Exception {
SRechargeCommodityNewConfig sRechargeCommodityConfig = SRechargeCommodityNewConfig.getConfigById(goodsId);
if(sRechargeCommodityConfig == null){
throw new ErrorCodeException(ErrorCode.CFG_NULL);
throw new ErrorCodeException(ErrorCode.GOOD_INFO_NOT);
}
int price = (int)sRechargeCommodityConfig.getPrice()*100;
sendGoods(iSession.getUid(), String.valueOf(goodsId), "", vouchers_order, TimeUtils.now(), price);
@ -136,7 +136,7 @@ public class BuyGoodsNewLogic {
public static void moneyBuyGoods(ISession iSession, int goodsId) throws Exception {
SRechargeCommodityNewConfig sRechargeCommodityConfig = SRechargeCommodityNewConfig.getConfigById(goodsId);
if(sRechargeCommodityConfig == null){
throw new ErrorCodeException(ErrorCode.CFG_NULL);
throw new ErrorCodeException(ErrorCode.GOOD_INFO_NOT);
}
int price = (int)sRechargeCommodityConfig.getPrice()*100;
sendGoods(iSession.getUid(), String.valueOf(goodsId), "", money_order, TimeUtils.now(), price);
@ -149,7 +149,7 @@ public class BuyGoodsNewLogic {
public static void gmBuyGoods(ISession iSession, int goodsId) throws Exception {
SRechargeCommodityNewConfig sRechargeCommodityConfig = SRechargeCommodityNewConfig.getConfigById(goodsId);
if(sRechargeCommodityConfig == null){
throw new ErrorCodeException(ErrorCode.CFG_NULL);
throw new ErrorCodeException(ErrorCode.GOOD_INFO_NOT);
}
int price = (int)sRechargeCommodityConfig.getPrice() * 100;
MessageUtil.sendMessage(iSession,1, MessageTypeProto.MessageType.TEST_BUY_GIGT_GOODS_RESPONSE_VALUE,null,true);