排行榜判null
parent
8f34ad884a
commit
146444119f
|
@ -2202,6 +2202,9 @@ public class MapLogic {
|
|||
int score = item.getScore().intValue();
|
||||
int uidTmp = Integer.parseInt(value);
|
||||
User userTmp = UserManager.getUser(uidTmp);
|
||||
if (null == userTmp) {
|
||||
continue;
|
||||
}
|
||||
PlayerManager playerInfoManager = userTmp.getPlayerInfoManager();
|
||||
mainLevelRankInfoList.add(CommonProto.MainLevelRankInfo.newBuilder()
|
||||
.setUid(uidTmp)
|
||||
|
@ -2988,6 +2991,9 @@ public class MapLogic {
|
|||
int tower = TowerRankUtil.getTowerAndTime(data)[0];
|
||||
int time = TowerRankUtil.getTowerAndTime(data)[1];
|
||||
User everyUser = UserManager.getUser(Integer.parseInt(next.getValue()));
|
||||
if (null == everyUser) {
|
||||
continue;
|
||||
}
|
||||
CommonProto.TowerRankInfo everyRankInfo = CommonProto.TowerRankInfo.newBuilder()
|
||||
.setRank(rank)
|
||||
.setHighestTower(tower)
|
||||
|
|
|
@ -39,7 +39,9 @@ public class GetMonsterAttackRankHandler extends BaseHandler<PlayerInfoProto.Get
|
|||
int score = (int)(item.getScore().longValue()>>40);
|
||||
int uid = Integer.parseInt(value);
|
||||
User user = UserManager.getUser(uid);
|
||||
|
||||
if (null == user) {
|
||||
continue;
|
||||
}
|
||||
PlayerManager playerInfoManager = user.getPlayerInfoManager();
|
||||
CommonProto.MonsterRankInfo monsterRankInfo = CommonProto.MonsterRankInfo.newBuilder()
|
||||
.setName(playerInfoManager.getNickName())
|
||||
|
|
|
@ -1057,7 +1057,9 @@ public class ActivityLogic {
|
|||
int score = item.getScore().intValue();
|
||||
int uid = Integer.parseInt(value);
|
||||
User user = UserManager.getUser(uid);
|
||||
|
||||
if (null == user) {
|
||||
continue;
|
||||
}
|
||||
PlayerManager playerInfoManager = user.getPlayerInfoManager();
|
||||
CommonProto.UseForceInfo personInfoBuild = CommonProto.UseForceInfo.newBuilder()
|
||||
.setLeve(playerInfoManager.getLevel())
|
||||
|
@ -1098,7 +1100,9 @@ public class ActivityLogic {
|
|||
int score = item.getScore().intValue();
|
||||
int uid = Integer.parseInt(value);
|
||||
User user = UserManager.getUser(uid);
|
||||
|
||||
if (null == user) {
|
||||
continue;
|
||||
}
|
||||
PlayerManager playerInfoManager = user.getPlayerInfoManager();
|
||||
CommonProto.ExpertInfo personInfoBuild = CommonProto.ExpertInfo.newBuilder()
|
||||
.setName(playerInfoManager.getNickName())
|
||||
|
|
|
@ -73,7 +73,9 @@ class ExpectRankActivity extends AbstractActivity {
|
|||
String value = item.getValue();
|
||||
int uid = Integer.parseInt(value);
|
||||
User user = UserManager.getUser(uid);
|
||||
|
||||
if (null == user) {
|
||||
continue;
|
||||
}
|
||||
ActivityMission activityMission = user.getActivityManager().getActivityMissionMap().get(id);
|
||||
if (activityMission == null || activityMission.getActivityState() != ActivityType.OPEN_STATE || activityMission.getOpenType() == 0) {
|
||||
continue;
|
||||
|
|
|
@ -76,7 +76,9 @@ class ForceRankActivity extends AbstractActivity {
|
|||
String value = item.getValue();
|
||||
int uid = Integer.parseInt(value);
|
||||
User user = UserManager.getUser(uid);
|
||||
|
||||
if (null == user) {
|
||||
continue;
|
||||
}
|
||||
ActivityMission activityMission = user.getActivityManager().getActivityMissionMap().get(id);
|
||||
if (activityMission == null || activityMission.getActivityState() != ActivityType.OPEN_STATE || activityMission.getOpenType() == 0) {
|
||||
continue;
|
||||
|
|
|
@ -447,6 +447,9 @@ public class ArenaLogic {
|
|||
int score = item.getScore().intValue();
|
||||
int uid = Integer.parseInt(value);
|
||||
User user = UserManager.getUser(uid);
|
||||
if (null == user) {
|
||||
continue;
|
||||
}
|
||||
int totalForce = HeroLogic.getInstance().calTeamTotalForce(user, GlobalsDef.TEAM_ARENA_DEFENSE, false);
|
||||
List<TeamPosHeroInfo> teamPosHeroInfoList = user.getTeamPosManager().getTeamPosForHero().get(GlobalsDef.TEAM_ARENA_DEFENSE);
|
||||
Map<String, Hero> heroMap = user.getHeroManager().getHeroMap();
|
||||
|
@ -617,6 +620,9 @@ public class ArenaLogic {
|
|||
String value = item.getValue();
|
||||
int uid = Integer.parseInt(value);
|
||||
User user = UserManager.getUser(uid);
|
||||
if (null == user) {
|
||||
continue;
|
||||
}
|
||||
if(type == GlobalsDef.ARENA_DAILY_REWARD){
|
||||
|
||||
MissionEventDistributor.requestStart();
|
||||
|
|
|
@ -706,6 +706,9 @@ public class CombatLogic {
|
|||
int score =item.getScore().intValue();
|
||||
int uid = Integer.parseInt(value);
|
||||
User user = UserManager.getUser(uid);
|
||||
if (null == user) {
|
||||
continue;
|
||||
}
|
||||
adventureRankItemInfos.add(CBean2Proto.getAdventureRankItemInfo(uid,user,score,++start));
|
||||
}
|
||||
}
|
||||
|
@ -738,6 +741,9 @@ public class CombatLogic {
|
|||
String value = item.getValue();
|
||||
int uid = Integer.parseInt(value);
|
||||
User user = UserManager.getUser(uid);
|
||||
if (null == user) {
|
||||
continue;
|
||||
}
|
||||
String rewardByRank = getRewardByRank(rank);
|
||||
if("".equals(rewardByRank)){
|
||||
break;
|
||||
|
|
|
@ -156,6 +156,9 @@ public class StoreLogic {
|
|||
while(it.hasNext()){
|
||||
StoreInfo storeInfo = it.next().getValue();
|
||||
SStoreTypeConfig sStoreTypeConfig = SStoreTypeConfig.getsStoreTypeConfigMap().get(storeInfo.getId());
|
||||
if(null == sStoreTypeConfig){
|
||||
continue;
|
||||
}
|
||||
if (sStoreTypeConfig.getStoreOpenRule() ==2 || sStoreTypeConfig.getStoreOpenRule() ==5 || sStoreTypeConfig.getStoreOpenRule() ==6 || sStoreTypeConfig.getStoreOpenRule() ==7){
|
||||
if(storeInfo.getEndTime()==0){
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue