社稷大典邮件内容修改
parent
34cd899b6e
commit
30c1a61b62
|
@ -189,10 +189,13 @@ class SheJiActivity extends AbstractActivity {
|
|||
Set<ZSetOperations.TypedTuple<String>> rankInfo = expertRank.getRankByKey(String.valueOf(id), 0, -1);
|
||||
int rank = 1;
|
||||
int nowTime = (int) (TimeUtils.now() / 1000);
|
||||
//特殊分值 2500
|
||||
//int specailScore = SSpecialConfig.getIntegerValue(SSpecialConfig.ADVENTURE_RANKINGSHOWNUM);
|
||||
for (ZSetOperations.TypedTuple<String> item : rankInfo) {
|
||||
|
||||
String value = item.getValue();
|
||||
int uid = Integer.parseInt(value);
|
||||
boolean isSpecial =false;
|
||||
try {
|
||||
User user = UserManager.getUser(uid, true);
|
||||
if (null == user) {
|
||||
|
@ -207,8 +210,9 @@ class SheJiActivity extends AbstractActivity {
|
|||
// return;
|
||||
// }
|
||||
if (rank2miss.containsKey(rank)) {
|
||||
if (rank <= 10 && score <2500) {
|
||||
if (rank <= 10 && score < 2500) {
|
||||
missionId = rank2miss.get(11);
|
||||
isSpecial= true;
|
||||
} else {
|
||||
missionId = rank2miss.get(rank);
|
||||
}
|
||||
|
@ -221,6 +225,7 @@ class SheJiActivity extends AbstractActivity {
|
|||
}
|
||||
|
||||
final int finalIndex = rank;
|
||||
final boolean finalIsSpecial = isSpecial;
|
||||
AyyncWorker ayyncWorker = new AyyncWorker(user, true, new AyncWorkerRunnable() {
|
||||
@Override
|
||||
public void work(User user) throws Exception {
|
||||
|
@ -230,7 +235,13 @@ class SheJiActivity extends AbstractActivity {
|
|||
//sendmail
|
||||
|
||||
String title = SErrorCodeEerverConfig.getI18NMessageNeedConvert("personal_activity_reward_title", new Object[]{sGlobalActivity.getSesc()},new int[]{1},"#");
|
||||
String content = SErrorCodeEerverConfig.getI18NMessageNeedConvert("personal_activity_reward_txt", new Object[]{sGlobalActivity.getSesc(), finalIndex},new int[]{1,0},"#");
|
||||
String content;
|
||||
if(finalIsSpecial){
|
||||
content = SErrorCodeEerverConfig.getI18NMessageNeedConvert("personal_activity_reward_extra_txt", new Object[]{2500},new int[0],"#");
|
||||
}else{
|
||||
content = SErrorCodeEerverConfig.getI18NMessageNeedConvert("personal_activity_reward_txt", new Object[]{sGlobalActivity.getSesc(), finalIndex},new int[]{1,0},"#");
|
||||
}
|
||||
|
||||
String mailReward = ItemUtil.getMailReward(sActivityRankingReward1.getRankingReward());
|
||||
MailLogic.getInstance().sendMail(uid, title, content, mailReward, nowTime, Global.MAIL_EFFECTIVE_TIME);
|
||||
|
||||
|
|
Loading…
Reference in New Issue