Compare commits

...

2 Commits

Author SHA1 Message Date
Wangxxz
6532cf75e3 修改方法名称 2024-12-13 14:33:25 +08:00
Wangxxz
ad357a61b7 修改方法名称 2024-12-13 14:17:48 +08:00
3 changed files with 6 additions and 6 deletions

View File

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

View File

@@ -359,7 +359,7 @@ public class CourseAuditApi extends ApiBaseController{
String token = request.getHeader("Xboe-Access-Token"); String token = request.getHeader("Xboe-Access-Token");
CourseParam param = new CourseParam(); CourseParam param = new CourseParam();
param.setId(courseId); param.setId(courseId);
thirdApi.updateOnLineStatua(param,token); thirdApi.updateOnLineStatus(param,token);
} }
return success(true); return success(true);
} catch (Exception e) { } catch (Exception e) {

View File

@@ -80,4 +80,4 @@ userBasic.getUserBasicInfo=${boe.domain}/userbasic/user/getUserBasicInfo
coursesuilt.updateOrSaveCourse=${boe.domain}/manageApi/admin/teacherRecord/updateOrSaveCourse coursesuilt.updateOrSaveCourse=${boe.domain}/manageApi/admin/teacherRecord/updateOrSaveCourse
coursesuilt.syncCourseStudent=${boe.domain}/manageApi/admin/teacherRecord/syncCourseStudent coursesuilt.syncCourseStudent=${boe.domain}/manageApi/admin/teacherRecord/syncCourseStudent
coursesuilt.syncOnLineScore=${boe.domain}/manageApi/admin/teacherRecord/syncOnLineScore coursesuilt.syncOnLineScore=${boe.domain}/manageApi/admin/teacherRecord/syncOnLineScore
coursesuilt.updateOnLineStatua=${boe.domain}/manageApi/admin/teacherRecord/updateOnLineStatua coursesuilt.updateOnLineStatus=${boe.domain}/manageApi/admin/teacherRecord/updateOnLineStatus