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