越南金额支付切换
parent
c3e5db84b9
commit
4d3798b06d
|
|
@ -111,7 +111,10 @@ public class BuyGoodsNewLogic {
|
|||
if (sRechargeCommodityConfig == null){
|
||||
throw new ErrorCodeException(ErrorCode.GOOD_INFO_NOT);
|
||||
}
|
||||
int price = (int)sRechargeCommodityConfig.getPrice()*100;
|
||||
double price1 = sRechargeCommodityConfig.getPrice();
|
||||
int cfgType = SSpecialConfig.getIntegerValue("exchange_focus_type");
|
||||
double price2 = price1 == 0?0: SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int) price1);
|
||||
int price = (int) (price2 * 100);
|
||||
if (!GameApplication.serverProperties.isDebug() && price != 0){
|
||||
LOGGER.error("debug关闭状态,线上环境,不允许测试支付购买!");
|
||||
return;
|
||||
|
|
@ -128,7 +131,10 @@ public class BuyGoodsNewLogic {
|
|||
if(sRechargeCommodityConfig == null){
|
||||
throw new ErrorCodeException(ErrorCode.GOOD_INFO_NOT);
|
||||
}
|
||||
int price = (int)sRechargeCommodityConfig.getPrice()*100;
|
||||
double price1 = sRechargeCommodityConfig.getPrice();
|
||||
int cfgType = SSpecialConfig.getIntegerValue("exchange_focus_type");
|
||||
double price2 = price1 == 0?0: SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int) price1);
|
||||
int price = (int) (price2 * 100);
|
||||
sendGoods(iSession.getUid(), String.valueOf(goodsId), "", vouchers_order, TimeUtils.now(), price);
|
||||
MessageUtil.sendMessage(iSession,1, MessageTypeProto.MessageType.TEST_BUY_GIGT_GOODS_RESPONSE_VALUE,null,true);
|
||||
}
|
||||
|
|
@ -141,7 +147,10 @@ public class BuyGoodsNewLogic {
|
|||
if(sRechargeCommodityConfig == null){
|
||||
throw new ErrorCodeException(ErrorCode.GOOD_INFO_NOT);
|
||||
}
|
||||
int price = (int)sRechargeCommodityConfig.getPrice()*100;
|
||||
double price1 = sRechargeCommodityConfig.getPrice();
|
||||
int cfgType = SSpecialConfig.getIntegerValue("exchange_focus_type");
|
||||
double price2 = price1 == 0?0: SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int) price1);
|
||||
int price = (int) (price2 * 100);
|
||||
sendGoods(iSession.getUid(), String.valueOf(goodsId), "", money_order, TimeUtils.now(), price);
|
||||
MessageUtil.sendMessage(iSession,1, MessageTypeProto.MessageType.TEST_BUY_GIGT_GOODS_RESPONSE_VALUE,null,true);
|
||||
}
|
||||
|
|
@ -154,7 +163,10 @@ public class BuyGoodsNewLogic {
|
|||
if(sRechargeCommodityConfig == null){
|
||||
throw new ErrorCodeException(ErrorCode.GOOD_INFO_NOT);
|
||||
}
|
||||
int price = (int)sRechargeCommodityConfig.getPrice() * 100;
|
||||
double price1 = sRechargeCommodityConfig.getPrice();
|
||||
int cfgType = SSpecialConfig.getIntegerValue("exchange_focus_type");
|
||||
double price2 = price1 == 0?0: SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int) price1);
|
||||
int price = (int) (price2 * 100);
|
||||
MessageUtil.sendMessage(iSession,1, MessageTypeProto.MessageType.TEST_BUY_GIGT_GOODS_RESPONSE_VALUE,null,true);
|
||||
sendGoods(iSession.getUid(), String.valueOf(goodsId), "", gm_modifier, TimeUtils.now(), price);
|
||||
}
|
||||
|
|
@ -173,7 +185,10 @@ public class BuyGoodsNewLogic {
|
|||
LOGGER.error("sendGoods to 扶持发奖,礼包id未找到,uid:{},good:{}",user.getId(),goodId);
|
||||
continue;
|
||||
}
|
||||
int price = (int)config.getPrice() * 100;
|
||||
double price1 = config.getPrice();
|
||||
int cfgType = SSpecialConfig.getIntegerValue("exchange_focus_type");
|
||||
double price2 = price1 == 0?0: SExchangeRate.doubleIntegerHashMap.get(cfgType).get((int) price1);
|
||||
int price = (int) (price2 * 100);
|
||||
// 发送多个礼包
|
||||
sendGoods(user.getId(), String.valueOf(goodId), "", support_order, TimeUtils.now(), price);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue