|
|
@@ -1030,7 +1030,8 @@ public class BuyGoodsLogic {
|
|
|
sendGoodsByType(user, sRechargeCommodityConfig, dropByBag);
|
|
|
|
|
|
//直购礼包
|
|
|
- if (type == GiftGoodsType.DIRECTBAG || type == GiftGoodsType.FOREVER_MEMBER || type == GiftGoodsType.CLUB_PRIVILEGE) {
|
|
|
+ if (type == GiftGoodsType.DIRECTBAG || type == GiftGoodsType.FOREVER_MEMBER
|
|
|
+ || type == GiftGoodsType.CLUB_PRIVILEGE || type == GiftGoodsType.VOUCHER_PRIVILEGE) {
|
|
|
int bIReason = BIReason.DIRECT_BUY;
|
|
|
int [][] reward = sRechargeCommodityConfig.getBaseReward();
|
|
|
if(type == GiftGoodsType.FOREVER_MEMBER){
|
|
|
@@ -1164,7 +1165,8 @@ public class BuyGoodsLogic {
|
|
|
int nowTime = (int) (TimeUtils.now() / 1000);
|
|
|
List<String> title;
|
|
|
List<String> content;
|
|
|
- if(type == GiftGoodsType.DIRECTBAG || type == GiftGoodsType.CLUB_PRIVILEGE || type == GiftGoodsType.FOREVER_MEMBER || type == GiftGoodsType.GEM){
|
|
|
+ if(type == GiftGoodsType.DIRECTBAG || type == GiftGoodsType.CLUB_PRIVILEGE || type == GiftGoodsType.FOREVER_MEMBER
|
|
|
+ || type == GiftGoodsType.GEM || type == GiftGoodsType.VOUCHER_PRIVILEGE){
|
|
|
title = SErrorCodeEerverConfig.getI18NMessageNew("recharge_pack_" + goodsId + "_title", new Object[]{});
|
|
|
content = SErrorCodeEerverConfig.getI18NMessageNew("recharge_pack_" + goodsId + "_txt", new Object[]{});
|
|
|
}else {
|
|
|
@@ -1476,6 +1478,11 @@ public class BuyGoodsLogic {
|
|
|
rechargeInfo.setClubGiftTaskRewardTimes(0);
|
|
|
PlayerLogic.getInstance().sendClubRewardMail(user);
|
|
|
}
|
|
|
+ if (type == GiftGoodsType.VOUCHER_PRIVILEGE) {
|
|
|
+ rechargeInfo.setVoucherGiftBuyTime(System.currentTimeMillis());
|
|
|
+ rechargeInfo.setVoucherGiftTaskRewardTimes(0);
|
|
|
+ PlayerLogic.getInstance().sendVoucherRewardMail(user);
|
|
|
+ }
|
|
|
// 更新入库
|
|
|
MongoUtil.getLjsdMongoTemplate().lastUpdate();
|
|
|
}catch (Exception e){
|
|
|
@@ -2865,7 +2872,8 @@ public class BuyGoodsLogic {
|
|
|
sendGoodsByType(user, sRechargeCommodityConfig, dropByBag);
|
|
|
|
|
|
//直购礼包
|
|
|
- if (type == GiftGoodsType.DIRECTBAG || type == GiftGoodsType.FOREVER_MEMBER || type == GiftGoodsType.CLUB_PRIVILEGE) {
|
|
|
+ if (type == GiftGoodsType.DIRECTBAG || type == GiftGoodsType.FOREVER_MEMBER ||
|
|
|
+ type == GiftGoodsType.CLUB_PRIVILEGE || type == GiftGoodsType.VOUCHER_PRIVILEGE) {
|
|
|
int bIReason = BIReason.DIRECT_BUY;
|
|
|
int [][] reward = sRechargeCommodityConfig.getBaseReward();
|
|
|
if(type == GiftGoodsType.FOREVER_MEMBER){
|