线程加入try catch
parent
20a0adb7fe
commit
c0126ead43
|
@ -72,16 +72,20 @@ public class SituationLogic {
|
|||
runnable.run();
|
||||
}
|
||||
private void checkStatus(){
|
||||
if(status==null||overTime==null||openConfig==null){
|
||||
status = new int[4];
|
||||
openConfig = SSpecialConfig.getTwiceArrayValue(SSpecialConfig.XUANYUAN_OPEN_TIME);
|
||||
overTime = new int[4];
|
||||
doCheck();
|
||||
}else{
|
||||
if(TimeUtils.getHourOfDay()!=5){
|
||||
return;
|
||||
try{
|
||||
if(status==null||overTime==null||openConfig==null){
|
||||
status = new int[4];
|
||||
openConfig = SSpecialConfig.getTwiceArrayValue(SSpecialConfig.XUANYUAN_OPEN_TIME);
|
||||
overTime = new int[4];
|
||||
doCheck();
|
||||
}else{
|
||||
if(TimeUtils.getHourOfDay()!=5){
|
||||
return;
|
||||
}
|
||||
doCheck();
|
||||
}
|
||||
doCheck();
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
private void doCheck(){
|
||||
|
@ -285,7 +289,7 @@ public class SituationLogic {
|
|||
User userInMem = UserManager.getUserInMem(pveFightEvent.getAttackUid());
|
||||
CommonProto.FightTeamInfo fightTeamInfo = FightUtil.getFightTeamInfoWithSomeBuff(userInMem, pveFightEvent.getTeamId(),pveFightEvent.getAttackBloodMap(),buffInfo);
|
||||
int fightSeed = FightUtil.getFightSeed();
|
||||
List<CommonProto.FightTeamInfo> monsterfightTeamInfos = FightUtil.makeMonsterFightData(pveFightEvent.getMonsterGroupId(), pveFightEvent.getNums());
|
||||
List<CommonProto.FightTeamInfo> monsterfightTeamInfos = FightUtil.makeMonsterFightData(pveFightEvent.getMonsterGroupId(), pveFightEvent.getNums(),null);
|
||||
LuaValue getFightData = FightDataUtil.getFinalFightData(fightTeamInfo, monsterfightTeamInfos);
|
||||
LuaValue getOptionData = FightDataUtil.getOptionData(pveFightEvent.getAttackUid()+"");
|
||||
int[] fightResult = CheckFight.getInstance().checkFight(fightSeed, fightEvent.getMostTime(), getFightData, getOptionData, fightEvent.getFightType().getFightType());
|
||||
|
|
Loading…
Reference in New Issue