Showing
2 changed files
with
5 additions
and
4 deletions
| ... | @@ -14,8 +14,9 @@ public interface CustomerConstant { | ... | @@ -14,8 +14,9 @@ public interface CustomerConstant { |
| 14 | interface VALIDATE_KEYS{ | 14 | interface VALIDATE_KEYS{ |
| 15 | //最大上传文件个数100个 | 15 | //最大上传文件个数100个 |
| 16 | Integer UPLOAD_FILE_MAX_TOTAL = 100; | 16 | Integer UPLOAD_FILE_MAX_TOTAL = 100; |
| 17 | - //最大上传总文件大小95M | 17 | + //文件大小95M |
| 18 | - Integer UPLOAD_FILE_MAX_SIZE = 95 * 1024 * 1024; | 18 | + Integer FILE_MAX_SIZE = 95; |
| 19 | + //最大上传总文件大小95kb | ||
| 20 | + Integer UPLOAD_FILE_MAX_SIZE = FILE_MAX_SIZE * 1024 * 1024; | ||
| 19 | } | 21 | } |
| 20 | - | ||
| 21 | } | 22 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -54,7 +54,7 @@ public class AttachmentValidate { | ... | @@ -54,7 +54,7 @@ public class AttachmentValidate { |
| 54 | .mapToLong(f -> Optional.ofNullable(f).orElse(0L)).sum(); | 54 | .mapToLong(f -> Optional.ofNullable(f).orElse(0L)).sum(); |
| 55 | //最大上传总文件大小超过95M | 55 | //最大上传总文件大小超过95M |
| 56 | if(totalSize > CustomerConstant.VALIDATE_KEYS.UPLOAD_FILE_MAX_SIZE){ | 56 | if(totalSize > CustomerConstant.VALIDATE_KEYS.UPLOAD_FILE_MAX_SIZE){ |
| 57 | - responseUtils.fail(ResponseCode.MESSAGE_CODE_30008,CustomerConstant.VALIDATE_KEYS.UPLOAD_FILE_MAX_SIZE); | 57 | + responseUtils.fail(ResponseCode.MESSAGE_CODE_30008,CustomerConstant.VALIDATE_KEYS.FILE_MAX_SIZE); |
| 58 | } | 58 | } |
| 59 | } | 59 | } |
| 60 | 60 | ... | ... |
-
Please register or login to post a comment