gm修改器购买
parent
3881e066ed
commit
b39221e45f
|
|
@ -55,7 +55,7 @@ public class GmBuyGoodHandler extends BaseHandler<PlayerInfoProto.GmBuyGoodReque
|
|||
throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH);
|
||||
}
|
||||
// 走礼包逻辑发送奖励
|
||||
BuyGoodsNewLogic.gmBuyGoods(user, goodsId);
|
||||
BuyGoodsNewLogic.gmBuyGoods(iSession, goodsId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -137,18 +137,19 @@ public class BuyGoodsNewLogic {
|
|||
|
||||
/**
|
||||
* gm修改器购买物品
|
||||
* @param user
|
||||
* @param iSession
|
||||
* @param goodsId
|
||||
* @throws Exception
|
||||
*/
|
||||
public static void gmBuyGoods(User user, int goodsId) throws Exception {
|
||||
public static void gmBuyGoods(ISession iSession, int goodsId) throws Exception {
|
||||
SRechargeCommodityNewConfig sRechargeCommodityConfig = SRechargeCommodityNewConfig.getConfigById(goodsId);
|
||||
if(sRechargeCommodityConfig == null){
|
||||
throw new ErrorCodeException(ErrorCode.CFG_NULL);
|
||||
}
|
||||
String orderId = "gm_modifier";
|
||||
int price = (int)sRechargeCommodityConfig.getPrice() * 100;
|
||||
sendGoods(user.getId(), String.valueOf(goodsId), user.getPlayerInfoManager().getOpenId(), orderId, TimeUtils.now(), price);
|
||||
MessageUtil.sendMessage(iSession,1, MessageTypeProto.MessageType.TEST_BUY_GIGT_GOODS_RESPONSE_VALUE,null,true);
|
||||
sendGoods(iSession.getUid(), String.valueOf(goodsId), "", orderId, TimeUtils.now(), price);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue