支付用分计算
parent
0934ef3c0d
commit
d8734b999b
|
|
@ -108,7 +108,7 @@ public class BuyGoodsNewLogic {
|
|||
if (sRechargeCommodityConfig == null){
|
||||
throw new ErrorCodeException(ErrorCode.CFG_NULL);
|
||||
}
|
||||
int price = (int)sRechargeCommodityConfig.getPrice();
|
||||
int price = (int)sRechargeCommodityConfig.getPrice()*100;
|
||||
if (!GameApplication.serverProperties.isDebug() && price != 0){
|
||||
LOGGER.error("debug关闭状态,线上环境,不允许测试支付购买!");
|
||||
return;
|
||||
|
|
@ -128,7 +128,7 @@ public class BuyGoodsNewLogic {
|
|||
if(sRechargeCommodityConfig == null){
|
||||
throw new ErrorCodeException(ErrorCode.CFG_NULL);
|
||||
}
|
||||
int price = (int)sRechargeCommodityConfig.getPrice();
|
||||
int price = (int)sRechargeCommodityConfig.getPrice()*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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue