zouxuan 5 年之前
父節點
當前提交
fbbee8b5fa

+ 2 - 1
edu-im/edu-im-server/src/main/java/com/keao/edu/im/mec/im/IMHelper.java

@@ -286,7 +286,8 @@ public class IMHelper {
         }*/
     }
 
-    void againRecord(HttpURLConnection conn,String body,Long registrationId) throws Exception {
+    @Async
+    public void againRecord(HttpURLConnection conn,String body,Long registrationId) throws Exception {
         IMApiResultInfo resultInfo = JSON.parseObject(httpHelper.returnResult(conn, body), IMApiResultInfo.class);
         if(resultInfo.getResultCode() == 10000){
             redisTemplate.opsForValue().set(resultInfo.getRecordId(),registrationId.toString());

+ 1 - 1
edu-user/edu-user-biz/src/main/java/com/keao/edu/user/service/impl/ExamRoomStudentRelationServiceImpl.java

@@ -503,7 +503,7 @@ public class ExamRoomStudentRelationServiceImpl extends BaseServiceImpl<Long, Ex
 			if(roomStudentListDtos.size() > 1){
 				RoomStudentListDto roomStudentListDto1 = roomStudentListDtos.get(1);
 				if(roomStudentListDto1.getFinishedExam() == 2){
-					nextStudent(roomStudentListDto1.getExamRoomStudentRelationId(),false,sysUser.getId());
+					nextStudent(roomStudentListDto1.getExamRoomStudentRelationId(),true,sysUser.getId());
 				}
 			}
 			//当等待人数到指定数值时,推送准备考试消息