|
@@ -448,7 +448,7 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
addWatchLogIfNeeded(param.getSopId(), param.getVideoId(), param.getCourseId(),item.getFsUserId(), qwUserId, companyUserId, companyId, item.getExternalId(),param.getStartTime(),createTime );
|
|
|
|
|
|
String sortLink = generateShortLink(st, param.getCorpId(), createTime, param.getCourseId(), param.getVideoId(),
|
|
|
- qwUserId, companyUserId, companyId,finalDomainName, item.getExternalId(),config);
|
|
|
+ qwUserId, companyUserId, companyId,finalDomainName, item.getExternalId(),config,contact.getFsUserId());
|
|
|
|
|
|
if (StringUtils.isNotEmpty(sortLink)) {
|
|
|
if ("3".equals(st.getContentType())) {
|
|
@@ -481,7 +481,7 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
addWatchLogIfNeeded(param.getSopId(), param.getVideoId(), param.getCourseId(),item.getFsUserId(), qwUserId, companyUserId, companyId, item.getExternalId(),param.getStartTime(),createTime );
|
|
|
|
|
|
String linkByMiniApp = createLinkByMiniApp(st, param.getCorpId(), createTime, param.getCourseId(), param.getVideoId(),
|
|
|
- qwUserId, companyUserId, companyId, item.getExternalId(), config);
|
|
|
+ qwUserId, companyUserId, companyId, item.getExternalId(), config,contact.getFsUserId());
|
|
|
|
|
|
st.setMiniprogramPage(linkByMiniApp);
|
|
|
break;
|
|
@@ -602,7 +602,7 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
|
|
|
private String generateShortLink(QwSopCourseFinishTempSetting.Setting setting, String corpId, Date sendTime,
|
|
|
Integer courseId, Integer videoId, String qwUserId,
|
|
|
- String companyUserId, String companyId,String domainName, Long externalId,CourseConfig config) {
|
|
|
+ String companyUserId, String companyId,String domainName, Long externalId,CourseConfig config,Long FsUserId) {
|
|
|
|
|
|
// 手动创建 FsCourseLink 对象,避免使用 BeanUtils.copyProperties
|
|
|
// FsCourseLink link = new FsCourseLink();
|
|
@@ -633,6 +633,7 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
|
|
|
FsCourseRealLink courseMap = new FsCourseRealLink();
|
|
|
BeanUtils.copyProperties(link,courseMap);
|
|
|
+ courseMap.setFsUserId(FsUserId);
|
|
|
|
|
|
String courseJson = JSON.toJSONString(courseMap);
|
|
|
String realLinkFull = REAL_LINK_PREFIX + courseJson;
|
|
@@ -652,13 +653,14 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
|
|
|
private String createLinkByMiniApp(QwSopCourseFinishTempSetting.Setting setting, String corpId, Date sendTime,
|
|
|
Integer courseId, Integer videoId, String qwUserId,
|
|
|
- String companyUserId, String companyId, Long externalId,CourseConfig config) {
|
|
|
+ String companyUserId, String companyId, Long externalId,CourseConfig config,Long FsUserId) {
|
|
|
|
|
|
FsCourseLink link = createFsCourseLink(corpId, sendTime, courseId, videoId, qwUserId,
|
|
|
companyUserId, companyId, externalId,3);
|
|
|
|
|
|
FsCourseRealLink courseMap = new FsCourseRealLink();
|
|
|
BeanUtils.copyProperties(link,courseMap);
|
|
|
+ courseMap.setFsUserId(FsUserId);
|
|
|
|
|
|
String courseJson = JSON.toJSONString(courseMap);
|
|
|
String realLinkFull = miniappRealLink + courseJson;
|
|
@@ -682,6 +684,7 @@ public class SopUserLogsInfoServiceImpl implements ISopUserLogsInfoService {
|
|
|
|
|
|
FsCourseRealLink courseMap = new FsCourseRealLink();
|
|
|
BeanUtils.copyProperties(link,courseMap);
|
|
|
+ courseMap.setFsUserId(fsUserId);
|
|
|
|
|
|
String courseJson = JSON.toJSONString(courseMap);
|
|
|
String realLinkFull = REAL_LINK_PREFIX + courseJson;
|