back_recharge
parent
594497fb53
commit
48f71e6b21
|
|
@ -126,16 +126,16 @@ public class BuyGoodsNewLogic {
|
|||
* 测试购买物品
|
||||
*/
|
||||
public static void testBuyGoods(ISession session,String goodsId) throws Exception {
|
||||
// if (!GameApplication.serverProperties.isDebug()){
|
||||
// LOGGER.error("debug关闭状态,线上环境,不允许测试支付购买!");
|
||||
// return;
|
||||
// }
|
||||
SRechargeCommodityNewConfig sRechargeCommodityConfig = SRechargeCommodityNewConfig.getConfigById(Integer.parseInt(goodsId));
|
||||
int uid = session.getUid();
|
||||
if (sRechargeCommodityConfig == null){
|
||||
throw new ErrorCodeException(ErrorCode.CFG_NULL);
|
||||
}
|
||||
int price = (int)sRechargeCommodityConfig.getPrice() *100;
|
||||
if (!GameApplication.serverProperties.isDebug() && price != 0){
|
||||
LOGGER.error("debug关闭状态,线上环境,不允许测试支付购买!");
|
||||
return;
|
||||
}
|
||||
MessageUtil.sendMessage(session,1, MessageTypeProto.MessageType.TEST_BUY_GIGT_GOODS_RESPONSE_VALUE,null,true);
|
||||
sendGoods(uid, goodsId, "", test_buy_order, TimeUtils.now(), price);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue