|
@@ -166,6 +166,7 @@ public class TSAuthController {
|
|
2022052700001L + "G"));//试卷编号+卷型
|
|
2022052700001L + "G"));//试卷编号+卷型
|
|
String source = Base64Util.encode(ShaUtils.sha1(map.get("examId") + map.get("courseCode").toString()));
|
|
String source = Base64Util.encode(ShaUtils.sha1(map.get("examId") + map.get("courseCode").toString()));
|
|
log.info("source:{}", source);
|
|
log.info("source:{}", source);
|
|
|
|
+ //TODO 更新grade_batch source
|
|
String accessToken = SignatureEntity.build(SignatureType.SECRET, SystemConstant.METHOD, dictionaryConfig.reportOpenDomain().getCalculateApi(), timestamp, basicSchool.getAccessKey(), basicSchool.getAccessSecret());
|
|
String accessToken = SignatureEntity.build(SignatureType.SECRET, SystemConstant.METHOD, dictionaryConfig.reportOpenDomain().getCalculateApi(), timestamp, basicSchool.getAccessKey(), basicSchool.getAccessSecret());
|
|
String result = HttpUtil.postJson(dictionaryConfig.reportOpenDomain().getHostUrl() + dictionaryConfig.reportOpenDomain().getCalculateApi(), JacksonUtil.parseJson(map), accessToken, timestamp);
|
|
String result = HttpUtil.postJson(dictionaryConfig.reportOpenDomain().getHostUrl() + dictionaryConfig.reportOpenDomain().getCalculateApi(), JacksonUtil.parseJson(map), accessToken, timestamp);
|
|
if (Objects.nonNull(result)) {
|
|
if (Objects.nonNull(result)) {
|
|
@@ -175,7 +176,6 @@ public class TSAuthController {
|
|
throw ExceptionResultEnum.ERROR.exception(jsonObject.getString("error"));
|
|
throw ExceptionResultEnum.ERROR.exception(jsonObject.getString("error"));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- //TODO 更新grade_batch source
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error(SystemConstant.LOG_ERROR, e);
|
|
log.error(SystemConstant.LOG_ERROR, e);
|
|
//TODO 生成txt文件
|
|
//TODO 生成txt文件
|