| | |
| | | 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(); |
| | |
| | | String dirPath = linShiBaseUrl + resGuid + "/"; //临时文件夹路径 |
| | | String lingshiPic = linShiBaseUrl + resGuid + "/" + picName; //临时文件 |
| | | |
| | | File lingshiqjfile = getquanjingFile(dirPath,lingshiPic,entity); |
| | | File lingshiqjfile = getquanjingFile(dirPath,lingshiPic,entity.getId()); |
| | | |
| | | /** |
| | | * 这里开始切图 |
| | |
| | | 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(); |
| | |
| | | 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); |