更新日志打印

master
youys 3 years ago
parent 8c26b006fb
commit b03c6684f2

@ -51,7 +51,7 @@ public class CallbackController {
String decodeOutPut = Base64.decodeStr(outPut); String decodeOutPut = Base64.decodeStr(outPut);
log.info("tpiID:{}, decodeOutPut:{}", tpiID, decodeOutPut); log.info("tpiID:{}, decodeOutPut:{}", tpiID, decodeOutPut);
long incr; long incr = 0;
String incrKey = String.format("evaluationResult:%s", tpiID); String incrKey = String.format("evaluationResult:%s", tpiID);
if (matchOutPut(decodeOutPut) && (incr = redisUtil.increment(incrKey)) > 3) { if (matchOutPut(decodeOutPut) && (incr = redisUtil.increment(incrKey)) > 3) {
log.info("evaluationResult, tpiID:{},第{}次评测失败,需要发送钉钉通知", tpiID, incr); log.info("evaluationResult, tpiID:{},第{}次评测失败,需要发送钉钉通知", tpiID, incr);
@ -64,8 +64,9 @@ public class CallbackController {
// 通知之后清空 // 通知之后清空
redisUtil.remove(incrKey); redisUtil.remove(incrKey);
return RESULT; return RESULT;
} } else if(incr == 0L){
log.info("tpiID:{},评测通过", tpiID); log.info("tpiID:{},评测通过", tpiID);
}
return RESULT; return RESULT;
} }

Loading…
Cancel
Save