Przeglądaj źródła

考试任务名称长度限制

wangliang 2 lat temu
rodzic
commit
8989109770

+ 1 - 1
server/pom.xml

@@ -5,7 +5,7 @@
 	<modelVersion>4.0.0</modelVersion>
 	<groupId>com.qmth</groupId>
 	<artifactId>jkserver</artifactId>
-	<version>4.0.0.4</version>
+	<version>3.4.0.1</version>
 	<packaging>jar</packaging>
 	<name>jk-server</name>
 

+ 2 - 2
server/src/main/java/com/qmth/jkserver/controller/system/ExamPlanController.java

@@ -78,8 +78,8 @@ public class ExamPlanController extends BaseSystemController {
     public Object add(HttpServletRequest request, ExamPlanDto examPlanDto) throws Exception {
         User user = super.getCachedUser(request);
         examPlanDto.setCreator(user);
-        if (Objects.nonNull(examPlanDto.getName()) && examPlanDto.getName().length() > 16) {
-            throw new RuntimeException("名称不能超过16个字符");
+        if (Objects.nonNull(examPlanDto.getName()) && examPlanDto.getName().length() > 32) {
+            throw new RuntimeException("名称不能超过32个字符");
         }
         return examPlanService.save(examPlanDto);
     }

+ 9 - 8
server/src/main/resources/application.properties

@@ -49,21 +49,22 @@ sys.config.time-max-delay=300
 ##\u7F13\u5B58\u6E05\u7406\u5B9A\u65F6\u5668\u914D\u7F6E
 #jk.cache.cron=0 1 * * * ?
 
-#com.qmth.fss.work.config=../work/
-#com.qmth.fss.work.server=/work/
-#com.qmth.fss.storage.config=../storage/
-#com.qmth.fss.storage.server=/storage/
+com.qmth.fss.work.config=../work/
+com.qmth.fss.work.server=/work/
+com.qmth.fss.storage.config=../storage/
+com.qmth.fss.storage.server=/storage/
 
-com.qmth.fss.work.config=oss://LTAI4Fi8jVRYT49QBXU9x5QX:97aBLBfkQR5mzCiQa82yWLAH57eUd8@teachcloud-test.oss-cn-shenzhen.aliyuncs.com
-com.qmth.fss.work.server=https://oss-cn-shenzhen.aliyuncs.com
-com.qmth.fss.storage.config=oss://LTAI4Fi8jVRYT49QBXU9x5QX:97aBLBfkQR5mzCiQa82yWLAH57eUd8@teachcloud-test.oss-cn-shenzhen.aliyuncs.com
-com.qmth.fss.storage.server=https://oss-cn-shenzhen.aliyuncs.com
+#com.qmth.fss.work.config=oss://LTAI4Fi8jVRYT49QBXU9x5QX:97aBLBfkQR5mzCiQa82yWLAH57eUd8@teachcloud-test.oss-cn-shenzhen.aliyuncs.com
+#com.qmth.fss.work.server=https://oss-cn-shenzhen.aliyuncs.com
+#com.qmth.fss.storage.config=oss://LTAI4Fi8jVRYT49QBXU9x5QX:97aBLBfkQR5mzCiQa82yWLAH57eUd8@teachcloud-test.oss-cn-shenzhen.aliyuncs.com
+#com.qmth.fss.storage.server=https://oss-cn-shenzhen.aliyuncs.com
 
 #com.qmth.solar.access-key=274f823e5f59410f8b3bb6edcd8e2b6e
 #com.qmth.solar.access-secret=y7AO6W0TOdTF8HpWBwGHbp3wfIHsmUKr
 
 #\u7F13\u5B58\u65F6\u95F4
 com.qmth.cache.expire-after-write=8h
+com.qmth.solar.app-code=jkserver
 
 #\u963F\u91CC\u4E91OSS\u914D\u7F6E
 #aliyun.oss.endpointInner=http://oss-cn-beijing-internal.aliyuncs.com