|
@@ -151,7 +151,7 @@ public class FaceManagementController {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- Long maxSize = 2097152L; // 最大文件2M
|
|
|
+ Long maxSize = 1048576L; // 最大文件1M
|
|
|
byte[] resultImg = ImageUtil.compressUnderSize(file.getBytes(), maxSize);
|
|
|
|
|
|
return map.get(imgSuffix) + ImageUtil.bytesEncode2Base64(resultImg);
|