mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
在线课同步授课记录
This commit is contained in:
@@ -5,6 +5,7 @@ import cn.hutool.core.lang.Opt;
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.xboe.api.vo.*;
|
||||
import com.xboe.module.course.dto.CourseParam;
|
||||
import com.xboe.module.course.vo.StudyCourseVo;
|
||||
import com.xboe.module.course.vo.TeacherInfoVo;
|
||||
import com.xboe.module.course.vo.TeacherVo;
|
||||
@@ -307,9 +308,9 @@ public class ThirdApi {
|
||||
|
||||
}
|
||||
|
||||
public void updateOrSaveCourse(String courseId, String token){
|
||||
public void updateOrSaveCourse(CourseParam param, String token){
|
||||
String resp = Optional.ofNullable(
|
||||
HttpRequest.post(updateOrSaveCourse).body(JSONUtil.toJsonStr(courseId)).header("token", token).execute()
|
||||
HttpRequest.post(updateOrSaveCourse).body(JSONUtil.toJsonStr(param)).header("token", token).execute()
|
||||
.body()).orElseThrow(() -> new RuntimeException("token校验失败"));
|
||||
log.info("updateOrSaveCourse = " + resp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user