|
|
@@ -2239,7 +2239,14 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
String linkByMiniApp = createLinkByMiniApp(new Date(), param.getCourseId(), param.getVideoId(), qwUser, param.getExternalUserId(),2,null,0);
|
|
|
|
|
|
JSONObject news = new JSONObject(true);
|
|
|
- news.put("miniprogramAppid", qwCompany.getMiniAppId());
|
|
|
+ // 获取配置的小程序id
|
|
|
+ QwAppMiniProgramRelation qwAppMiniProgramRelation = qwAppMiniProgramRelationMapper.selectQwAppMiniProgramRelationByAgentIdAndCorpId(param.getAppAgentId(), param.getCorpId());
|
|
|
+ if (qwAppMiniProgramRelation == null){
|
|
|
+ log.error("createMiniLink()未找到侧边栏配置的小程序,appAgentId:{},corpId:{}", param.getAppAgentId(), param.getCorpId());
|
|
|
+ news.put("miniprogramAppid", qwCompany.getMiniAppId());
|
|
|
+ }else{
|
|
|
+ news.put("miniprogramAppid", qwAppMiniProgramRelation.getMiniAppId());
|
|
|
+ }
|
|
|
news.put("miniprogramTitle", param.getTitle());
|
|
|
news.put("miniprogramPicUrl", config.getSidebarImageUrl());
|
|
|
news.put("miniprogramPage", linkByMiniApp);
|
|
|
@@ -2534,7 +2541,14 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
String linkByMiniApp = createLinkByMiniApp(new Date(), param.getCourseId(), param.getVideoId(), qwUser, param.getExternalUserId(),2,null,1);
|
|
|
|
|
|
JSONObject news = new JSONObject(true);
|
|
|
- news.put("miniprogramAppid", qwCompany.getMiniAppId());
|
|
|
+ // 获取配置的小程序id
|
|
|
+ QwAppMiniProgramRelation qwAppMiniProgramRelation = qwAppMiniProgramRelationMapper.selectQwAppMiniProgramRelationByAgentIdAndCorpId(param.getAppAgentId(), param.getCorpId());
|
|
|
+ if (qwAppMiniProgramRelation == null){
|
|
|
+ log.error("createRoomMiniLink()未找到侧边栏配置的小程序,appAgentId:{},corpId:{}", param.getAppAgentId(), param.getCorpId());
|
|
|
+ news.put("miniprogramAppid", qwCompany.getMiniAppId());
|
|
|
+ }else{
|
|
|
+ news.put("miniprogramAppid", qwAppMiniProgramRelation.getMiniAppId());
|
|
|
+ }
|
|
|
news.put("miniprogramTitle", param.getTitle());
|
|
|
news.put("miniprogramPicUrl", config.getSidebarImageUrl());
|
|
|
news.put("miniprogramPage", linkByMiniApp);
|