소스 검색

获取当前ip

qinchao 4 년 전
부모
커밋
51d836223c

+ 3 - 1
examcloud-core-examwork-api-provider/src/main/java/cn/com/qmth/examcloud/core/examwork/api/controller/ExamController.java

@@ -1562,7 +1562,9 @@ public class ExamController extends ControllerSupport {
         boolean ipLimited = examService.getIpLimited(request, examId, accessUser);
         Map<String, Object> map = new HashMap<>();
         map.put("limited",ipLimited);
-        map.put("desc","该考试当前考生受限");
+        if(ipLimited){
+            map.put("desc","该考试当前考生受限");
+        }
         return map;
     }