back_recharge
parent
69610995d1
commit
eda6fd40f4
|
@ -361,11 +361,14 @@ public class GlobalDataManaager implements IManager {
|
||||||
Integer goodsId = iterator.next();
|
Integer goodsId = iterator.next();
|
||||||
if(SRechargeCommodityConfig.rechargeCommodityConfigMap.get(goodsId).getDailyUpdate() == 1){
|
if(SRechargeCommodityConfig.rechargeCommodityConfigMap.get(goodsId).getDailyUpdate() == 1){
|
||||||
buyGoodsTimes.put(goodsId,0);
|
buyGoodsTimes.put(goodsId,0);
|
||||||
|
|
||||||
update =true;
|
update =true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(update){
|
if(update){
|
||||||
|
user.getPlayerInfoManager().getRechargeInfo().clearCacheSendId();
|
||||||
user.getPlayerInfoManager().getRechargeInfo().setBuyGoodsTimes(buyGoodsTimes);
|
user.getPlayerInfoManager().getRechargeInfo().setBuyGoodsTimes(buyGoodsTimes);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -446,7 +446,7 @@ public class PlayerLogic {
|
||||||
if(remainDays<0){
|
if(remainDays<0){
|
||||||
remainDays=0;
|
remainDays=0;
|
||||||
}
|
}
|
||||||
int sendTims = days-1;
|
int sendTims = days;
|
||||||
while (sendTims-->0){
|
while (sendTims-->0){
|
||||||
if( type == GiftGoodsType.FOUND_ONE || type == GiftGoodsType.FOUND_TWO){
|
if( type == GiftGoodsType.FOUND_ONE || type == GiftGoodsType.FOUND_TWO){
|
||||||
mailReward = ItemUtil.getMailReward(SLuxuryFund.getByFoundIdAndDay(goodsInfo.getKey(),sRechargeCommodityConfig.getContiueDays()-remainDays - sendTims).getreward());
|
mailReward = ItemUtil.getMailReward(SLuxuryFund.getByFoundIdAndDay(goodsInfo.getKey(),sRechargeCommodityConfig.getContiueDays()-remainDays - sendTims).getreward());
|
||||||
|
|
Loading…
Reference in New Issue