#
vincentlu
2025-01-13 2fa57dfc4448c1489b09cac59cc4a586461af153
zy-acs-manager/src/main/java/com/zy/acs/manager/core/service/MapService.java
@@ -35,6 +35,8 @@
@Component("mapService")
public class MapService {
    private final static int[][] DIRECTIONS = {{0,1},{0,-1},{-1,0},{1,0}};
    @Value("${floyd.enable}")
    private Boolean floydEnable;
    @Autowired
@@ -117,7 +119,7 @@
        return floydNavigateService.calculatePath(startIdx, endIdx).stream().map(path -> {
            Long codeId = floydNavigateService.getCodeId(path);
            Code code = codeService.getById(codeId);
            Code code = codeService.getCacheById(codeId);
            return code.getData();
        }).collect(Collectors.toList());
    }