From 2f87b4ac786a854ebf6543a265ed3ff886a4abd8 Mon Sep 17 00:00:00 2001 From: whb <17803890193@163.com> Date: Thu, 26 Dec 2024 10:54:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=A0=E5=8D=95=E7=82=B9?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=BD=91=E5=9D=80=E6=B7=BB=E5=8A=A0/OAuth=3F?= =?UTF-8?q?token=3D=E5=AF=BC=E8=87=B4=E4=BA=8C=E6=AC=A1=E7=99=BB=E9=99=86?= =?UTF-8?q?=E6=89=93=E4=B8=8D=E5=BC=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/api/student/ApiStudentService.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/web/src/main/java/com/ibeetl/jlw/service/api/student/ApiStudentService.java b/web/src/main/java/com/ibeetl/jlw/service/api/student/ApiStudentService.java index 8b89b871..603aa495 100644 --- a/web/src/main/java/com/ibeetl/jlw/service/api/student/ApiStudentService.java +++ b/web/src/main/java/com/ibeetl/jlw/service/api/student/ApiStudentService.java @@ -113,6 +113,22 @@ public class ApiStudentService { List resourcesApplicationList = resourcesApplicationService .getResourcesApplicationListByUniversitiesCollegesId(studentExtendSchoolInfo.getUniversitiesCollegesId()); + resourcesApplicationList.stream().forEach(item -> { + if (item.getApplicationLink().contains("/OAuth?token=")){ + + String substring = item.getApplicationLink().substring(0, item.getApplicationLink().indexOf("/OAuth?token=")); + item.setApplicationLink(substring); + + } + if ("证券投资模拟交易大赛系统(V2.0)".equals(item.getApplicationName())){ + + String substring = item.getApplicationLink().substring(0, item.getApplicationLink().indexOf("/server?token=")); + item.setApplicationLink(substring); + } + + }); + + // 我的开课信息 TeacherOpenCourseMergeStudentQuery teacherOpenCourseMergeStudentQuery = new TeacherOpenCourseMergeStudentQuery(); teacherOpenCourseMergeStudentQuery.setStudentId(studentId);