修改测试查询参数

This commit is contained in:
zhaolongfei
2024-05-25 19:05:35 +08:00
parent 3aa737ae15
commit 73c2e8b54a
4 changed files with 17 additions and 11 deletions

View File

@@ -194,10 +194,10 @@ public class ThirdApi {
Opt.ofBlankAble(resp).map(t -> JSONUtil.toBean(t, DynamicBean.class).success()).map(DynamicBean::getResult).map(UserDynamicResult::getList).stream().flatMap(Collection::stream).forEach(list::add);
}
public List<StudyCourse>getStudyCourseList(String studyId,String contentId, String token){
public List<StudyCourse>getStudyCourseList(String studyId,String courseId, String token){
StudyCourseVo studyCourseVo = new StudyCourseVo();
studyCourseVo.setStudyId(studyId);
studyCourseVo.setContentId(contentId);
studyCourseVo.setCourseId(courseId);
String resp = Optional.ofNullable(
HttpRequest.post(getStudyStatus).body(JSONUtil.toJsonStr(studyCourseVo)).header("token", token).execute()
.body()).orElseThrow(() -> new RuntimeException("token校验失败"));