Ver código fonte

订单图片压缩-关闭

anderx 2 anos atrás
pai
commit
affcf80433

+ 1 - 4
src/main/java/com/goafanti/common/controller/BaseApiController.java

@@ -85,11 +85,8 @@ public class BaseApiController extends BaseController {
 				MultipartFile mf = files.get(0);
 				fileName = FileUtils.orderFileName(mf,id,path,sign);
 				File file=toFile(fileName);
-
 				mf.transferTo(file);
-				// 图片尺寸不变,压缩图片文件大小outputQuality实现,参数1为最高质量
-				//拼接文件路劲
-				fileName=compressFile(file,fileName);
+//				fileName=compressFile(file,fileName);
 				LoggerUtils.debug(getClass(), fileName + " 文件上传成功");
 			} catch (Exception e) {
 				LoggerUtils.error(getClass(), "文件上传失败", e);