更新日志打印

master
youys 3 years ago
parent 8c26b006fb
commit b03c6684f2

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

Loading…
Cancel
Save