ke
2024-05-17 ae86b561c0090dcf3e796ff3762acb1a545f9c6e
全景图更新切图功能kl  5-17 14
1 files modified
12 ■■■■■ changed files
skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/skPanorama/controller/SkPanoramaController.java 12 ●●●●● patch | view | raw | blame | history
skjcmanager/skjcmanager-service/skjcmanager-sm/src/main/java/cn/gistack/sm/skPanorama/controller/SkPanoramaController.java
@@ -277,7 +277,7 @@
    public R cutPicture2(SkPanoramaEntity skPanorama)
        throws IOException, InterruptedException, IM4JavaException, IllegalAccessException {
        SkPanoramaEntity entity = skPanoramaService.getOne(Condition.getQueryWrapper(skPanorama));
        SkPanoramaEntity entity = skPanoramaService.getById(skPanorama.getId());
        String picUrl = entity.getPicUrl();
        String picName = entity.getPicName();
        String resGuid = entity.getResGuid();
@@ -286,7 +286,7 @@
        String dirPath = linShiBaseUrl + resGuid + "/"; //临时文件夹路径
        String lingshiPic = linShiBaseUrl + resGuid + "/" + picName; //临时文件
        File lingshiqjfile = getquanjingFile(dirPath,lingshiPic,entity);
        File lingshiqjfile = getquanjingFile(dirPath,lingshiPic,entity.getId());
        /**
         * 这里开始切图
@@ -362,8 +362,10 @@
        return R.status(true);
    }
    private File getquanjingFile (String dirPath ,String linshiUrl , SkPanoramaEntity skPanorama) throws IOException {
        SkPanoramaEntity entity = skPanoramaService.getOne(Condition.getQueryWrapper(skPanorama));
    private File getquanjingFile (String dirPath ,String linshiUrl , Long id) throws IOException {
//        SkPanoramaEntity entity = skPanoramaService.getOne(Condition.getQueryWrapper(skPanorama));
        SkPanoramaEntity entity = skPanoramaService.getById(id);
        String picUrl = entity.getPicUrl();
        String picName = entity.getPicName();
        String resGuid = entity.getResGuid();
@@ -424,7 +426,7 @@
                String lingshigeshibilipath = linShiformateBaseUrl + resGuid + "/geshibili/" ;
                String lingshigeshibiliPic = lingshigeshibilipath + picName; //格式化后的临时文件
                File lingshiqjfile = getquanjingFile(dirPath,lingshiPic,entity);
                File lingshiqjfile = getquanjingFile(dirPath,lingshiPic,id);
                // 创建文件夹
                File lingshigeshibilidir = new File(lingshigeshibilipath);