Merge branch 'master_prb_gn' into master_test_gn

back_recharge
jiahuiwen 2021-09-27 16:00:39 +08:00
commit 8ef0fffa43
1 changed files with 7 additions and 7 deletions

View File

@ -105,15 +105,15 @@ public class CheckFight {
resultCache[0]= result.get("result").tolong(); resultCache[0]= result.get("result").tolong();
resultCache[1]= result.get("duration").tolong(); resultCache[1]= result.get("duration").tolong();
LOGGER.info(" lua check test fight result : {} {}", resultCache[0] , result.length()); LOGGER.info(" lua check test fight result : {} {}", resultCache[0] , result.length());
for (int i = 2; i <= result.length(); i++) { for (int i = 1; i <= result.length(); i++) {
long talon = result.rawget(i).tolong(); long talon = result.rawget(i).tolong();
if(talon>0){ if (talon > 0) {
resultCache[i]= Math.min(Long.MAX_VALUE,talon); resultCache[i + 1] = Math.min(Long.MAX_VALUE, talon);
}else { } else {
resultCache[i]= Math.max(Long.MIN_VALUE,talon); resultCache[i + 1] = Math.max(Long.MIN_VALUE, talon);
} }
resultCache[i] = result.rawget(i).tolong(); resultCache[i + 1] = result.rawget(i).tolong();
LOGGER.info(i+" --> 单位剩余血量 : "+ resultCache[i]); LOGGER.info(i + " --> 单位剩余血量 : " + resultCache[i + 1]);
} }
resultCache[8]= result.get("curRound").tolong(); resultCache[8]= result.get("curRound").tolong();
return resultCache; return resultCache;