|  | @@ -419,8 +419,9 @@ public class RealExamService {
 | 
	
		
			
				|  |  |              } else {
 | 
	
		
			
				|  |  |                  l.info("Who模拟器校验正确");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            // 其他的异常情况。
 | 
	
		
			
				|  |  | -            if (ar.isError()) {
 | 
	
		
			
				|  |  | +            if (ar.isSuccess()) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            } else if (ar.isError()) { // 其他的异常情况。
 | 
	
		
			
				|  |  |                  return ar;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
	
		
			
				|  | @@ -523,14 +524,28 @@ public class RealExamService {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    public AjaxResult studentRefreshSimState(final String studentBindIp) {
 | 
	
		
			
				|  |  | -        Seat seat = seatService.uniqueByBindIp(studentBindIp);
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * 刷新模拟器状态。
 | 
	
		
			
				|  |  | +     *
 | 
	
		
			
				|  |  | +     * @param userId
 | 
	
		
			
				|  |  | +     * @param ip
 | 
	
		
			
				|  |  | +     * @return
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    public AjaxResult studentRefreshSimState(final Long userId, final String ip) {
 | 
	
		
			
				|  |  | +        l.info("studentLoginSuccess userId = 1,ip = {}", ip);
 | 
	
		
			
				|  |  | +        Seat seat = seatService.uniqueByBindIp(ip);
 | 
	
		
			
				|  |  |          // Check:Seat有效性。
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              if (seat == null) {
 | 
	
		
			
				|  |  |                  return AjaxResult.error("没有IP对应座次数据!");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        // 既然已经刷新模拟器状态,则认为已经登录。
 | 
	
		
			
				|  |  | +        // 如果是先登录,后创建的考试集合。覆盖执行。
 | 
	
		
			
				|  |  | +        if (false) {
 | 
	
		
			
				|  |  | +            AjaxResult ar = studentLoginSuccess(userId, ip);
 | 
	
		
			
				|  |  | +            l.info("studentLoginSuccess ar = {}", ar);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          return commCheckService.checkOneSeatState(seat, true);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -689,6 +704,8 @@ public class RealExamService {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // Step:最后读取一下模拟器电阻值。
 | 
	
		
			
				|  |  |          commSendService.readOneExamAtLast(re);
 | 
	
		
			
				|  |  | +        // 
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          // Step:
 | 
	
		
			
				|  |  |          if (realExamFaultService.isType2ExamPrepareSubmitOk(re.getExamId())) {
 | 
	
		
			
				|  |  |              re.setExamStatus(RealExam.State.SUBMITTED);
 |