时间屏蔽 被动技bug

back_recharge
zhangshanxue 2020-06-08 10:26:22 +08:00
parent 336ec10895
commit d66bee14fc
2 changed files with 6 additions and 6 deletions

View File

@ -395,11 +395,11 @@ public class GMRequestHandler extends BaseHandler{
Runtime.getRuntime().exec(cmd);
} else {// Linux 系统
// 格式yyyyMMdd
cmd = " date -s "+ dataLinux;
Runtime.getRuntime().exec(cmd);
// 格式 HH:mm:ss
cmd = " date -s "+ time;
Runtime.getRuntime().exec(cmd);
// cmd = " date -s "+ dataLinux;
// Runtime.getRuntime().exec(cmd);
// // 格式 HH:mm:ss
// cmd = " date -s "+ time;
// Runtime.getRuntime().exec(cmd);
}
} catch (IOException e) {
LOGGER.error("update->uid={},msg={}", uid, e.getMessage(), e);

View File

@ -1437,7 +1437,7 @@ public class HeroLogic{
Map<Integer, Integer> heroSkillAdMap = new HashMap<>();
heroSkillList.forEach(skill->{
SPassiveSkillLogicConfig config = SPassiveSkillLogicConfig.getConfig(skill);
if(config.getValue()[2] !=4){
if(null!=config.getValue()&&config.getValue().length>2&&config.getValue()[2] !=4){
PassiveskillCalEnum.calEnumMap.get(config.getType()).getPassiveSkillProcessor().process(config,hero,heroSkillAdMap);
}