back_recharge
wangyuan 2019-12-13 21:18:29 +08:00
parent 456d88c346
commit c754c7b063
1 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,6 @@ import com.ljsd.jieling.logic.blood.BloodLogic;
import com.ljsd.jieling.logic.dao.*;
import com.ljsd.jieling.logic.dao.root.User;
import com.ljsd.jieling.logic.fight.*;
import com.ljsd.jieling.logic.hero.HeroAttributeEnum;
import com.ljsd.jieling.logic.hero.HeroLogic;
import com.ljsd.jieling.logic.mail.MailLogic;
import com.ljsd.jieling.logic.mission.event.MissionEventDistributor;
@ -62,7 +61,7 @@ public class ChampionshipLogic {
}
public static void viewFinalInfo(ISession iSession, int type) throws Exception {
if(schedule!=2){
if (schedule != 2) {
throw new ErrorCodeException(ErrorCode.SERVER_SELF_DEFINE);
}
@ -73,17 +72,18 @@ 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);
for(ArenaRecord arenaRecord : arenaRecords){
for (ArenaRecord arenaRecord : arenaRecords) {
int attackId = arenaRecord.getAttackId();
int defUid = arenaRecord.getDefUid();
String attackName = getRoleNameById(attackId,config);
String defName = getRoleNameById(attackId,config);
String attackName = getRoleNameById(attackId, config);
String defName = getRoleNameById(attackId, config);
int fightResult = arenaRecord.getFightResult();
if(progress%10%4 != 0){
fightResult =-1;
if (progress % 10 % 4 != 0) {
fightResult = -1;
}
}
}
public static String getRoleNameById(int uid,Map<Integer,SArenaRobotConfig> config ) throws Exception {