|
@@ -491,19 +491,21 @@ public class FsUserCourseServiceImpl implements IFsUserCourseService
|
|
|
public R createCourseSortLink(FsCourseLinkCreateParam param) {
|
|
|
String json = configService.selectConfigByKey("course.config");
|
|
|
CourseConfig config = JSONUtil.toBean(json, CourseConfig.class);
|
|
|
+ //短链参数
|
|
|
+ String random = generateRandomString();
|
|
|
|
|
|
//新增链接表信息
|
|
|
FsCourseLink link = new FsCourseLink();
|
|
|
BeanUtils.copyProperties(param, link);
|
|
|
link.setLinkType(0);
|
|
|
link.setIsRoom(0);
|
|
|
+ link.setLink(random);
|
|
|
|
|
|
FsCourseRealLink courseMap = new FsCourseRealLink();
|
|
|
BeanUtils.copyProperties(link, courseMap);
|
|
|
String courseJson = JSON.toJSONString(courseMap);
|
|
|
-
|
|
|
link.setRealLink(realLink + courseJson);
|
|
|
- String random = generateRandomString();
|
|
|
+
|
|
|
link.setLink(random);
|
|
|
link.setCreateTime(new Date());
|
|
|
|