公会战安慰奖励
parent
e5a1eb23cf
commit
3fad81a218
|
@ -834,6 +834,17 @@ public class GuildFightLogic {
|
||||||
if(zsetreverseRangeWithScores.size()<1){
|
if(zsetreverseRangeWithScores.size()<1){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Map<Integer, Integer> defendInfo = guildInfo.getDefendInfo();
|
||||||
|
String particapateReward = SGuildSetting.sGuildSetting.getParticipation();
|
||||||
|
for(Integer uid:defendInfo.keySet()){
|
||||||
|
Integer attackCount = redisUtil.getMapEntry(RedisKey.FAMILY_FIGHT_ATTACK_COUNT,"",String.valueOf(uid),Integer.class);
|
||||||
|
if(attackCount!=null&&attackCount>0){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
String title = SErrorCodeEerverConfig.getI18NMessage("family_fight_reward_title");
|
||||||
|
String content = SErrorCodeEerverConfig.getI18NMessage("family_fight_reward_txt");
|
||||||
|
MailLogic.getInstance().sendMail(uid,title,content,particapateReward,(int) (TimeUtils.now()/1000), Global.MAIL_EFFECTIVE_TIME);
|
||||||
|
}
|
||||||
Iterator<ZSetOperations.TypedTuple<String>> it = zsetreverseRangeWithScores.iterator();
|
Iterator<ZSetOperations.TypedTuple<String>> it = zsetreverseRangeWithScores.iterator();
|
||||||
int userRank = 0;
|
int userRank = 0;
|
||||||
int userResultRank = 0;
|
int userResultRank = 0;
|
||||||
|
|
|
@ -62,6 +62,8 @@ public class SGuildSetting implements BaseConfig {
|
||||||
|
|
||||||
private int recruitCD;
|
private int recruitCD;
|
||||||
|
|
||||||
|
private String participation;
|
||||||
|
|
||||||
public static SGuildSetting sGuildSetting;
|
public static SGuildSetting sGuildSetting;
|
||||||
|
|
||||||
|
|
||||||
|
@ -183,4 +185,8 @@ public class SGuildSetting implements BaseConfig {
|
||||||
public int getRecruitCD() {
|
public int getRecruitCD() {
|
||||||
return recruitCD;
|
return recruitCD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getParticipation() {
|
||||||
|
return participation;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue