haogh 8 tháng trước cách đây
mục cha
commit
627e770f1f

+ 1 - 1
src/main/java/com/qmth/exam/reserve/bean/Constants.java

@@ -52,6 +52,6 @@ public interface Constants {
     /**
     /**
      * 文件大小限制
      * 文件大小限制
      */
      */
-    long FILE_SIZE_LIMIT = 5 * 1024 * 1024;
+    long FILE_SIZE_LIMIT = 500 * 1024;
 
 
 }
 }

+ 1 - 1
src/main/java/com/qmth/exam/reserve/service/impl/StudentServiceImpl.java

@@ -343,7 +343,7 @@ public class StudentServiceImpl extends ServiceImpl<StudentDao, StudentEntity> i
     public void uploadStudentPhoto(Long operateId, MultipartFile file) {
     public void uploadStudentPhoto(Long operateId, MultipartFile file) {
         //文件大小限制
         //文件大小限制
         if (file.getSize() > Constants.FILE_SIZE_LIMIT) {
         if (file.getSize() > Constants.FILE_SIZE_LIMIT) {
-            throw new StatusException("上传的考生照片大小不能超过5M");
+            throw new StatusException("上传的考生照片大小不能超过500K");
         }
         }
         OrgInfo org = orgCacheService.currentOrg();
         OrgInfo org = orgCacheService.currentOrg();
         CurrentApplyTaskVO curApplyTask = applyTaskCacheService.currentApplyTask(org.getOrgId());
         CurrentApplyTaskVO curApplyTask = applyTaskCacheService.currentApplyTask(org.getOrgId());