|
@@ -302,7 +302,7 @@ public class BannerTemplateController extends SimpleController {
|
|
//压缩文件上传路径
|
|
//压缩文件上传路径
|
|
String compressPath =absolutePath.concat(File.separator).concat("compress_").concat(uploadName);
|
|
String compressPath =absolutePath.concat(File.separator).concat("compress_").concat(uploadName);
|
|
//生成压缩图
|
|
//生成压缩图
|
|
- compressPicture(localFile,pathSmall, _width,_height);
|
|
|
|
|
|
+ compressPicture(localFile,compressPath, _width,_height);
|
|
//设置文件上传路径
|
|
//设置文件上传路径
|
|
bannerTemplate.setPath(replacePath(compressPath));
|
|
bannerTemplate.setPath(replacePath(compressPath));
|
|
}else{
|
|
}else{
|
|
@@ -403,7 +403,7 @@ public class BannerTemplateController extends SimpleController {
|
|
//压缩文件上传路径
|
|
//压缩文件上传路径
|
|
String compressPath =absolutePath.concat(File.separator).concat("compress_").concat(uploadName);
|
|
String compressPath =absolutePath.concat(File.separator).concat("compress_").concat(uploadName);
|
|
//生成压缩图
|
|
//生成压缩图
|
|
- compressPicture(localFile,pathSmall, _width,_height);
|
|
|
|
|
|
+ compressPicture(localFile,compressPath, _width,_height);
|
|
//设置文件上传路径
|
|
//设置文件上传路径
|
|
bannerTemplate.setPath(replacePath(compressPath));
|
|
bannerTemplate.setPath(replacePath(compressPath));
|
|
}else{
|
|
}else{
|