|
@@ -44,6 +44,7 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -83,6 +84,9 @@ public class CourseFsUserController extends AppBaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private RedisCache redisCache;
|
|
private RedisCache redisCache;
|
|
|
|
|
|
|
|
|
|
+ @Value("${cloud_host.company_name}")
|
|
|
|
|
+ private String signProjectName;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
@Login
|
|
@Login
|
|
@@ -288,6 +292,13 @@ public class CourseFsUserController extends AppBaseController {
|
|
|
@ApiOperation("获取我的sop课程-短信链接")
|
|
@ApiOperation("获取我的sop课程-短信链接")
|
|
|
@PostMapping("/getSopCourseH5StudyListByMsg")
|
|
@PostMapping("/getSopCourseH5StudyListByMsg")
|
|
|
public R getSopCourseH5StudyListByMsg(@RequestBody FsCourseH5ListParam param ){
|
|
public R getSopCourseH5StudyListByMsg(@RequestBody FsCourseH5ListParam param ){
|
|
|
|
|
+ if ("济南联志健康".equals(signProjectName)) {
|
|
|
|
|
+ String userId = getUserId();
|
|
|
|
|
+ if (userId == null) {
|
|
|
|
|
+ return R.error(401,"请先登录");
|
|
|
|
|
+ }
|
|
|
|
|
+ param.setUserId(Long.parseLong(userId));
|
|
|
|
|
+ }
|
|
|
return courseLinkService.getSopCourseH5StudyListByMsg(param);
|
|
return courseLinkService.getSopCourseH5StudyListByMsg(param);
|
|
|
}
|
|
}
|
|
|
|
|
|