back_recharge
duhui 2023-01-29 21:34:03 +08:00
parent 594497fb53
commit 48f71e6b21
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}