bug每分钟推送道具信息

zhangshanxue 2020-06-21 05:42:18 +08:00
parent cdacaa402a
commit c705182c02
3 changed files with 5 additions and 2 deletions

View File

@ -356,8 +356,10 @@ public class GlobalDataManaager implements IManager {
}
if (TimeUtils.isOverTime(0,user.getPlayerInfoManager().getLoginTime())) {
flushGoodsTimes(user);
BuyGoodsLogic.flushEveryDay(user);
user.getUserMissionManager().onGameEvent(user, GameEvent.LOGIN_GAME,0);
}
user.getPlayerInfoManager().setLoginTime(TimeUtils.now());
}

View File

@ -43,7 +43,7 @@ public class RechargeInfo extends MongoBase{
}
public boolean addNewSendId(int id){
cacheSendedIds.remove(-id);
// cacheSendedIds.remove(-id);
return cacheSendedIds.add(id);
}

View File

@ -479,7 +479,7 @@ public class BuyGoodsLogic {
continue;
}
if(endTime!=0 && now > endTime){
boolean isNew = rechargeInfo.addNewSendId(-goodsId);
boolean isNew = rechargeInfo.addNewSendId(goodsId);
if(isNew){
needChange = true;
}
@ -560,6 +560,7 @@ public class BuyGoodsLogic {
while (endTime<now){
endTime += SRechargeCommodityConfig.rechargeCommodityConfigMap.get(sRechargeCommodityConfig.getId()).getDailyUpdate() * TimeUtils.ONE_DAY ;
}
//tofix 不知道源作者想处理什么
if(!refreshBagMap.containsKey(sRechargeCommodityConfig.getId()) || refreshBagMap.get(sRechargeCommodityConfig.getId())!=endTime){
refreshBagMap.put(sRechargeCommodityConfig.getId(),endTime);
}