修复比较符

This commit is contained in:
南宫茜
2024-12-27 15:54:06 +08:00
committed by GitHub
parent dea05b46d3
commit 8d662769d7

View File

@@ -24,7 +24,7 @@ public class LogServiceImpl implements ILogService {
@Override
public List<LogFileInfo> queryList(String query, String startTime, String endTime) {
File logFile = getLogDir();
if (logFile == null && !logFile.exists()) {
if (logFile == null || !logFile.exists()) {
throw new ControllerException(ErrorCode.ERROR100.getCode(), "获取日志文件目录失败");
}
File[] files = logFile.listFiles();