邮件7日限制
parent
2a6dd4dec6
commit
4879ba762e
|
@ -71,6 +71,9 @@ public class WholeLifeActivity extends AbstractActivity {
|
||||||
if (day <= 0) {
|
if (day <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (day > 7) {
|
||||||
|
day = 7;
|
||||||
|
}
|
||||||
user.getPlayerInfoManager().setLastWholeLifeTime(TimeUtils.now());
|
user.getPlayerInfoManager().setLastWholeLifeTime(TimeUtils.now());
|
||||||
String title = SErrorCodeEerverConfig.getI18NMessage("shenzuntequan_mail_title");
|
String title = SErrorCodeEerverConfig.getI18NMessage("shenzuntequan_mail_title");
|
||||||
String content = SErrorCodeEerverConfig.getI18NMessage("shenzuntequan_mail_txt");
|
String content = SErrorCodeEerverConfig.getI18NMessage("shenzuntequan_mail_txt");
|
||||||
|
@ -81,15 +84,6 @@ public class WholeLifeActivity extends AbstractActivity {
|
||||||
MailLogic.getInstance().sendMail(user.getId(), title, content, mailReward, nowTime, Global.MAIL_EFFECTIVE_TIME_SERVEN);
|
MailLogic.getInstance().sendMail(user.getId(), title, content, mailReward, nowTime, Global.MAIL_EFFECTIVE_TIME_SERVEN);
|
||||||
}
|
}
|
||||||
//ActivityLogic.getInstance().sendActivityInfo(user, id);
|
//ActivityLogic.getInstance().sendActivityInfo(user, id);
|
||||||
/*long times;
|
|
||||||
if (user.getPlayerInfoManager().getLastWholeLifeTime() == 0) {
|
|
||||||
times = activityMission.getCreatTime();
|
|
||||||
} else {
|
|
||||||
times = user.getPlayerInfoManager().getLastWholeLifeTime();
|
|
||||||
}
|
|
||||||
int day = (int) TimeUtils.getGapDaysByTwoTime(TimeUtils.getTimeStamp2(times),
|
|
||||||
TimeUtils.getTimeStamp2(TimeUtils.now()));
|
|
||||||
activityMission.setV(activityMission.getV() + day > 7 ? 7 : day);*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue