仙充卡线下返利3
parent
f14552a205
commit
de9677c67f
|
|
@ -187,7 +187,7 @@ public class ItemLogic {
|
|||
SItem sItem = SItem.getsItemMap().get(item.getItemId());
|
||||
reward = getStringBuilder(reward, (int)item.getItemNum(), sItem.getRewardGroup());
|
||||
// 附加的rmb充值
|
||||
ItemUtil.rmbItemHandler(user,sItem);
|
||||
ItemUtil.rmbItemHandler(user,item);
|
||||
}
|
||||
|
||||
int[][] costItemArr = StringUtil.parseFiledInt2(cost.substring(0,cost.length()-1));
|
||||
|
|
|
|||
|
|
@ -1435,7 +1435,9 @@ public class ItemUtil {
|
|||
* @param user
|
||||
* @return
|
||||
*/
|
||||
public static boolean rmbItemHandler(User user, SItem sItem) throws ErrorCodeException {
|
||||
public static boolean rmbItemHandler(User user, CommonProto.Item item) throws ErrorCodeException {
|
||||
SItem sItem = SItem.getsItemMap().get(item.getItemId());
|
||||
|
||||
HashSet<Integer> integers = new HashSet<>();
|
||||
integers.add(GlobalItemType.TRUE_RECHARGE_JUAN);
|
||||
integers.add(GlobalItemType.DAY_TRUE_RECHARGE_JUAN);
|
||||
|
|
@ -1445,8 +1447,9 @@ public class ItemUtil {
|
|||
}
|
||||
NewRechargeInfo info = user.getPlayerInfoManager().getNewRechargeInfo();
|
||||
int num = sItem.getExtraReward()[1][0];
|
||||
long totalNum = num * item.getItemNum();
|
||||
// 累充活动
|
||||
BuyGoodsNewLogic.changeActivity(user,num,info);
|
||||
BuyGoodsNewLogic.changeActivity(user,totalNum,info);
|
||||
|
||||
// 道具累计活动充值活动
|
||||
ItemMap itemMap = new ItemMap();
|
||||
|
|
@ -1457,7 +1460,7 @@ public class ItemUtil {
|
|||
// 单笔充值
|
||||
Poster.getPoster().dispatchEvent(new SingleRechargeEvent(user.getId(),num));
|
||||
// 线下自动返利
|
||||
Poster.getPoster().dispatchEvent(new AutoRechargeBackEvent(user.getId(),num, GmActivityLogic.item_token));
|
||||
Poster.getPoster().dispatchEvent(new AutoRechargeBackEvent(user.getId(), (int)totalNum, GmActivityLogic.item_token));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue