|
@@ -975,6 +975,11 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
@Override
|
|
|
public CheckQrCodeInfo checkQrCode(String qrCode) {
|
|
|
String str = UrlUtil.decode(qrCode);
|
|
|
+
|
|
|
+ // 去掉?符号前面的部分
|
|
|
+ int index = str.indexOf("?");
|
|
|
+ str = str.substring(index + 1);
|
|
|
+
|
|
|
Map<String, String> map = Splitter.on("&").withKeyValueSeparator("=").split(str);
|
|
|
String examStudentId = map.get("examStudentId");
|
|
|
String examRecordDataId = map.get("examRecordDataId");
|
|
@@ -1263,7 +1268,7 @@ public class ExamControlServiceImpl implements ExamControlService {
|
|
|
String key = user.getKey();
|
|
|
StringBuffer param = new StringBuffer();
|
|
|
String transferFileType = StringUtils.isBlank(req.getTransferFileType()) ? "" : req.getTransferFileType();
|
|
|
- param.append("&examStudentId=").append(req.getExamStudentId()).append("&examRecordDataId=")
|
|
|
+ param.append("?examStudentId=").append(req.getExamStudentId()).append("&examRecordDataId=")
|
|
|
.append(req.getExamRecordDataId()).append("&order=").append(req.getOrder()).append("&transferFileType=")
|
|
|
.append(transferFileType).append("&key=").append(key);
|
|
|
// 需要签名的参数
|