战斗返回解析错误

back_recharge
jiahuiwen 2021-09-26 11:27:17 +08:00
parent 1c901e2e77
commit 653f969ac3
2 changed files with 3 additions and 3 deletions

View File

@ -104,8 +104,8 @@ public class CheckFight {
long[] resultCache = new long[9];//对方阵容走配置 Todo 后面结构走配置 long[] resultCache = new long[9];//对方阵容走配置 Todo 后面结构走配置
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]); LOGGER.info(" lua check test fight result : {} {}", resultCache[0] , result.length());
for (int i = resultCache.length; 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]= Math.min(Long.MAX_VALUE,talon);

View File

@ -43,7 +43,7 @@ public class ComplexEquipHandler extends BaseHandler<HeroInfoProto.ComplexEquipR
} }
if (proto.getStar() != 0) {//手动合成 if (proto.getStar() != 0) {//手动合成
//check param and cnf //check param and cnf
if (proto.getNum() <= 0) { if (proto.getNum() <= 0 || proto.getNum() >= 1000) {
throw new ErrorCodeException(ErrorCode.SERVER_DEFINE); throw new ErrorCodeException(ErrorCode.SERVER_DEFINE);
} }
int needStar = proto.getStar() - 1; int needStar = proto.getStar() - 1;