|
|
@@ -327,16 +327,15 @@ public class FsUserCourseVideoController extends AppBaseController {
|
|
|
@ApiOperation("会员批量发送课程消息")
|
|
|
@PostMapping("/batchSendCourse")
|
|
|
public OpenImResponseDTO batchSendCourse(@RequestBody BatchSendCourseDTO batchSendCourseDTO) throws JsonProcessingException {
|
|
|
- if (CollectionUtils.isNotEmpty(batchSendCourseDTO.getUserIds())){
|
|
|
- throw new RuntimeException("请选择会员信息!!");
|
|
|
- }
|
|
|
// 生成看课短链
|
|
|
FsCourseLinkCreateParam fsCourseLinkCreateParam = new FsCourseLinkCreateParam();
|
|
|
BeanUtils.copyProperties(batchSendCourseDTO, fsCourseLinkCreateParam);
|
|
|
R courseSortLink = fsUserCourseService.createAppCourseSortLink(fsCourseLinkCreateParam);
|
|
|
String url = courseSortLink.get("url").toString();
|
|
|
batchSendCourseDTO.setUrl(url);
|
|
|
- batchSendCourseDTO.setIsUrgeCourse(false);
|
|
|
+ if(batchSendCourseDTO.getIsUrgeCourse()==null){
|
|
|
+ batchSendCourseDTO.setIsUrgeCourse(false);
|
|
|
+ }
|
|
|
return openIMService.batchSendCourse(batchSendCourseDTO);
|
|
|
}
|
|
|
|