| | |
| | | */ |
| | | public OssTemplate templateByPathPanorama(String code,String prefixPath,String resGuid) { |
| | | String tenantId = AuthUtil.getTenantId(); |
| | | // System.err.println("tenantId:"+tenantId); |
| | | if (StringUtil.isBlank(tenantId)){ |
| | | tenantId = "000000"; |
| | | } |
| | | |
| | | Oss oss = getOss(tenantId, code); |
| | | |
| | | |
| | | OssTemplate template = null; |
| | | // template = templatePool.get(tenantId); |
| | | OssRule ossRule = new PanoramaOSSRule(Boolean.FALSE,prefixPath,resGuid); |
| | | PanoramaOSSRule ossRule = new PanoramaOSSRule(Boolean.FALSE,prefixPath,resGuid); |
| | | if (oss.getCategory() == OssEnum.MINIO.getCategory()) { |
| | | template = MinioOssBuilder.template(oss, ossRule); |
| | | } else if (oss.getCategory() == OssEnum.QINIU.getCategory()) { |