Ver código fonte

feat: 增加linux换行符

tags/24080901
刘帅 1 ano atrás
pai
commit
7746692da0
1 arquivos alterados com 2 adições e 0 exclusões
  1. +2
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CommonLogTask.java

+ 2
- 0
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CommonLogTask.java Ver arquivo

@@ -102,11 +102,13 @@ public class CommonLogTask {
//写入通用规则
FileWriter writer = new FileWriter(fileName);
writer.append(JSONUtil.toJsonStr(commonLog));
writer.append("\n");
if (commonLog.getActionType() == 3){
CommonLog commonLogEnd = new CommonLog();
BeanUtil.copyProperties(commonLog,commonLogEnd);
commonLogEnd.setActionType(4);
writer.append(JSONUtil.toJsonStr(commonLogEnd));
writer.append("\n");
}
}
//记录最后一个节点位置


Carregando…
Cancelar
Salvar