mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-15 22:06:50 +08:00
成长路径图,解除绑定接口去除
This commit is contained in:
@@ -65,9 +65,6 @@ public class ThirdApi {
|
||||
@Value("${userBasic.getUserIdByWorkNum}")
|
||||
private String getUserIdByWorkNum;
|
||||
|
||||
@Value("${coursesuilt.checkBanding}")
|
||||
private String checkBanding;
|
||||
|
||||
@Value("${coursesuilt.syncExamScoreToCourseSuite}")
|
||||
private String syncExamScoreToCourseSuite;
|
||||
|
||||
@@ -246,17 +243,6 @@ public class ThirdApi {
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
public String checkExamBanding(String testId, String token){
|
||||
String url = checkBanding+"?testId=" + testId;
|
||||
String resp = Optional.ofNullable(
|
||||
HttpRequest.get(url).header("token", token).execute().body()).orElseThrow(() -> new RuntimeException("token校验失败"));
|
||||
Gson gson = new Gson();
|
||||
CheckExamBandingBean checkExamBandingBean = gson.fromJson(resp, CheckExamBandingBean.class);
|
||||
return checkExamBandingBean.getData().toString();
|
||||
}
|
||||
|
||||
|
||||
public void syncExamScoreToCourseSuite(AloneExam aloneExam,String token) {
|
||||
Gson gson = new GsonBuilder()
|
||||
.registerTypeAdapter(LocalDateTime.class, new LocalDateTimeSerializer())
|
||||
|
||||
@@ -127,10 +127,6 @@ public class ExamTestApi extends ApiBaseController {
|
||||
}
|
||||
|
||||
try {
|
||||
String bandInfo = thirdApi.checkExamBanding(id, token);
|
||||
if (StringUtils.isNotBlank(bandInfo) && !bandInfo.equals("{}")){
|
||||
return error("删除失败,"+bandInfo);
|
||||
}
|
||||
examTestService.delete(id);
|
||||
return success(true);
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user