修复切换赛程没有竞猜信息

back_recharge
wangyuan 2020-03-30 18:38:41 +08:00
parent 470a104809
commit f0cb24a2e3
1 changed files with 5 additions and 2 deletions

View File

@ -82,7 +82,6 @@ public class ChampionshipLogic {
}
List<Object> arenaIds = new ArrayList<>(arenaRecodeds);
List<ArenaRecord> arenaRecords = RedisUtil.getInstence().getMapEntrys(RedisKey.CHAMPION_ARENA_RECORD, "", arenaIds, ArenaRecord.class);
Map<Integer, SArenaRobotConfig> config = STableManager.getConfig(SArenaRobotConfig.class);
ArenaInfoProto.ChampionViewFinalResponse.Builder builder = ArenaInfoProto.ChampionViewFinalResponse.newBuilder();
String selectIdForRedis = getSelectIdForRedis();
for (ArenaRecord arenaRecord : arenaRecords) {
@ -1147,7 +1146,11 @@ public class ChampionshipLogic {
public static String getSelectIdForRedis(){
String key = RedisUtil.getInstence().getKey(RedisKey.CHAMPION_CUR_BETID, "");
return RedisUtil.getInstence().get(key).toString();
Object result = RedisUtil.getInstence().get(key);
if(result!=null){
return result.toString();
}
return "";
}