瀏覽代碼

离线激活改在线激活关闭客观题卡模式

yin 8 月之前
父節點
當前提交
177aa232fa

+ 3 - 0
stmms-web/src/main/java/cn/com/qmth/stmms/admin/config/SystemAuthController.java

@@ -73,6 +73,7 @@ public class SystemAuthController extends BaseController {
         view.addObject("groupDeleteWarn", authCache.isGroupDeleteWarn());
         view.addObject("expireTime", authCache.getExpireTime() == null ? null : new Date(authCache.getExpireTime()));
         view.addObject("trialMode", authCache.getTrialMode()== null ? TrialMode.SHARE:authCache.getTrialMode());
+        view.addObject("yjsObjectiveEnable", authCache.isYjsObjectiveEnable());
         return view;
     }
 
@@ -104,12 +105,14 @@ public class SystemAuthController extends BaseController {
                 authCache.setDoubleTrack(true);
                 authCache.setExpireTime(null);
                 authCache.setTrialMode(TrialMode.SHARE);
+                authCache.setYjsObjectiveEnable(false);
                 schoolService.updateOrg();
             } else {
                 authCache.setAuth(false);
                 authCache.setDoubleTrack(false);
                 authCache.setExpireTime(null);
                 authCache.setTrialMode(TrialMode.SHARE);
+                authCache.setYjsObjectiveEnable(false);
                 addMessage(redirectAttributes, "授权验证失败");
             }
         } else {

+ 4 - 3
stmms-web/src/main/webapp/WEB-INF/views/modules/sys/authInfo.jsp

@@ -30,9 +30,10 @@
 	        <label class="control-label">授权模式</label>
 	        <div class="controls">
 	        	${systemAuth.type.name }
-	        	<c:if test="${doubleTrack}">:双评轨迹授权</c:if>
-	        	<c:if test="${groupDeleteWarn}">&nbsp; 开启删除分组警告&nbsp; </c:if>
-				试评:${trialMode.name}
+	        	<c:if test="${doubleTrack}">:双评轨迹授权&nbsp;</c:if>
+	        	<c:if test="${groupDeleteWarn}">&nbsp;开启删除分组警告&nbsp; </c:if>
+				试评:${trialMode.name}&nbsp;
+					<c:if test="${yjsObjectiveEnable}">&nbsp;支持客观题卡&nbsp; </c:if>
 	        </div>
 	    </div>
 	</form:form>