deason 1 年間 前
コミット
a91b1b03be

+ 2 - 0
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamControlServiceImpl.java

@@ -994,12 +994,14 @@ public class ExamControlServiceImpl implements ExamControlService {
         byte[] bytes = SHA256.encode(sourStr.toString());
         String hexAscii = ByteUtil.toHexAscii(bytes);
         if (!hexAscii.equals(token)) {
+            log.warn("二维码认证信息无效!key:{} token:{} examRecordDataId:{}", key, token, examRecordDataId);
             throw new StatusException("100005", "无效的二维码");
         }
 
         int sessionTimeout = PropertyHolder.getInt(SESSION_TIMEOUT, 3600);
         User user = redisClient.get(key, User.class, sessionTimeout);
         if (null == user) {
+            log.warn("二维码登录信息已失效!key:{} token:{} examRecordDataId:{}", key, token, examRecordDataId);
             throw new StatusException("100007", "登录信息已失效");
         }