back_recharge
duhui 2023-02-24 11:16:23 +08:00
parent 628edce335
commit 830d87cfb3
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,7 @@ import com.ljsd.jieling.logic.dao.TimeControllerOfFunction;
public class ArenaFunction implements FunctionManager {
@Override
public void closeAction ()throws Exception {
public void closeAction()throws Exception {
ArenaLogic.getInstance().sendReward(GlobalsDef.ARENA_SEASON_REWARD);
ArenaLogic.getInstance().updateArenaSeason(0);
Poster.getPoster().dispatchEvent(new FunctionRefreshEvent(-FunctionIdEnum.Arena.getFunctionType(),-1));

View File

@ -140,7 +140,7 @@ public class ArenaLogic {
}
}
public CommonProto.ArenaEnemy getWorldArenaEnemy( int uid) throws Exception {
public CommonProto.ArenaEnemy getWorldArenaEnemy( int uid) throws Exception {
User user = UserManager.getUser(uid);
int totalForce = HeroLogic.getInstance().calTeamTotalForce(user, TeamEnum.WORLD_TEAM_ARENA_DEFENSE.getTeamId(),false);
List<TeamPosHeroInfo> teamPosHeroInfoList = user.getTeamPosManager().getTeamPosForHero().get(TeamEnum.WORLD_TEAM_ARENA_DEFENSE.getTeamId());
@ -578,9 +578,11 @@ public class ArenaLogic {
continue;
}
// 超7天未登录玩家不再发奖励
if (csPlayer.getOffLineTime() == 0 || TimeUtils.now() > (csPlayer.getOffLineTime() + GlobalsDef.REDIS_OVER_TIME_DAY * 7 * 1000L)){
long offLineTime = csPlayer.getOffLineTime();
if (offLineTime == 0 || TimeUtils.now() > (offLineTime + GlobalsDef.REDIS_OVER_TIME_DAY * 7 * 1000L)){
String recordKey = RedisUtil.getInstence().getKey(RedisKey.ARENA_RRECORD, Integer.toString(uid));
RedisUtil.getInstence().del(recordKey);
LOGGER.error("竞技场发奖,玩家:{} 离线时间超过七天,剔除排行榜并且不再发奖,上次离线时间:{}",uid, offLineTime);
continue;
}
User user = UserManager.getUserNotCache(uid);