back_recharge
duhui 2023-03-22 13:50:41 +08:00
parent 32d6670393
commit 0de72cce63
1 changed files with 6 additions and 0 deletions

View File

@ -70,9 +70,12 @@ public class CarDelayFunction implements FunctionManager {
// 个人
String personTitle = SErrorCodeEerverConfig.getI18NMessage("family_fight_rank_personreward_title");
int nowTime = TimeUtils.nowInt();
int i = 0;
for(ZSetOperations.TypedTuple<String> rankInfo : personRangeWithScores){
i++;
int uid = Integer.parseInt(rankInfo.getValue());
long score = rankInfo.getScore().longValue();
LOGGER.info("车迟斗法发奖个人排行奖励uid{}rank{}score:{}",uid,i,score);
String rewardByRank = personRewardConfigTreeMap.floorEntry(score).getValue();
String personContent = SErrorCodeEerverConfig.getI18NMessageNeedConvert("family_fight_rank_personreward_txt",new Object[]{score},new int[]{0},"#");
MailLogic.getInstance().sendMailToRedis(uid,personTitle,personContent,rewardByRank,nowTime, Global.MAIL_EFFECTIVE_TIME);
@ -80,14 +83,17 @@ public class CarDelayFunction implements FunctionManager {
MongoUtil.getLjsdMongoTemplate().lastUpdate();
// 工会
i = 0;
String guildTitle = SErrorCodeEerverConfig.getI18NMessage("family_fight_rank_familyreward_title");
for(ZSetOperations.TypedTuple<String> rankInfo : guildRangeWithScores){
i++;
int guildId = Integer.parseInt(rankInfo.getValue());
GuildInfo guildInfo = GuilidManager.getGuildInfo(guildId);
if(guildInfo==null){
continue;
}
long score = rankInfo.getScore().longValue();
LOGGER.info("车迟斗法发奖公会排行奖励guildId{}rank{}score:{}",guildId,i,score);
String rewardByRank = guildRewardConfigTreeMap.floorEntry(score).getValue();
guildInfo.clearCarFightSb();
GuilidManager.saveOrUpdateGuildInfo(guildInfo);