|
@@ -38,7 +38,10 @@ import org.springframework.web.bind.annotation.*;
|
|
|
import javax.annotation.Resource;
|
|
|
import java.io.File;
|
|
|
import java.security.NoSuchAlgorithmException;
|
|
|
-import java.util.*;
|
|
|
+import java.util.Collections;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Map;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
/**
|
|
|
* @Description: mobile监考监控通话信息 前端控制器
|
|
@@ -210,17 +213,10 @@ public class TIeInvigilateCallMobileController {
|
|
|
@RequestMapping(value = "/getMonitorKey", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "获取监考monitorKey", response = MobileAuthorizationMonitorBean.class)})
|
|
|
public Result getMonitorKey(@ApiParam(value = "考试记录id", required = true) @RequestParam Long recordId) throws NoSuchAlgorithmException {
|
|
|
- TBUser tbUser = (TBUser) ServletUtil.getRequestAccount();
|
|
|
TBSession tbSession = (TBSession) ServletUtil.getRequestSession();
|
|
|
String monitorKey = ExamRecordCacheUtil.getMonitorKey(recordId);
|
|
|
- AuthDto authDto = (AuthDto) redisUtil.get(SystemConstant.userOauth + "::" + tbUser.getId());
|
|
|
String monitorUserId = null;
|
|
|
String sourceUserId = this.getSourceUserId(recordId);
|
|
|
-// if (Objects.nonNull(authDto) && !authDto.toString().contains(RoleEnum.STUDENT.name())) {
|
|
|
-// monitorUserId = "s_" + tbSession.getId();
|
|
|
-// } else {
|
|
|
-// monitorUserId = "m_" + tbSession.getId();
|
|
|
-// }
|
|
|
monitorUserId = "m_" + tbSession.getId();
|
|
|
String monitorUserSig = tencentYunUtil.getSign(monitorUserId, SystemConstant.TENCENT_EXPIRE_TIME);
|
|
|
Map<String, Object> map = new HashMap<>();
|