更改在线课状态

This commit is contained in:
Wangxxz
2024-11-09 16:51:34 +08:00
parent 0e74f11615
commit f5c26d02d1
2 changed files with 18 additions and 1 deletions

View File

@@ -80,6 +80,9 @@ public class ThirdApi {
private String syncCourseStudent;
@Value("${coursesuilt.syncOnLineScore}")
private String syncOnLineScore;
@Value("${coursesuilt.updateOnLineStatua}")
private String updateOnLineStatua;
//获取例外人员的id
public List<String> getUserId(){
@@ -331,4 +334,10 @@ public class ThirdApi {
.body()).orElseThrow(() -> new RuntimeException("token校验失败"));
log.info("syncOnLineScore = " + resp);
}
public void updateOnLineStatua(CourseParam param, String token){
String resp = Optional.ofNullable(
HttpRequest.post(updateOnLineStatua).body(JSONUtil.toJsonStr(param)).header("token", token).execute()
.body()).orElseThrow(() -> new RuntimeException("token校验失败"));
log.info("updateOrSaveCourse = " + resp);
}
}