|
@@ -398,6 +398,11 @@ public class FsUserCourseVideoController extends AppBaseController {
|
|
|
@ApiOperation("会员批量发送课程消息 发课")
|
|
@ApiOperation("会员批量发送课程消息 发课")
|
|
|
@PostMapping("/batchSendCourse")
|
|
@PostMapping("/batchSendCourse")
|
|
|
public OpenImResponseDTO batchSendCourse(@RequestBody BatchSendCourseDTO batchSendCourseDTO) throws JsonProcessingException {
|
|
public OpenImResponseDTO batchSendCourse(@RequestBody BatchSendCourseDTO batchSendCourseDTO) throws JsonProcessingException {
|
|
|
|
|
+
|
|
|
|
|
+ if(batchSendCourseDTO.getSendType()==2){
|
|
|
|
|
+ throw new RuntimeException("系统维护中,请先用定时发送");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
// 生成看课短链
|
|
// 生成看课短链
|
|
|
FsCourseLinkCreateParam fsCourseLinkCreateParam = new FsCourseLinkCreateParam();
|
|
FsCourseLinkCreateParam fsCourseLinkCreateParam = new FsCourseLinkCreateParam();
|
|
|
BeanUtils.copyProperties(batchSendCourseDTO, fsCourseLinkCreateParam);
|
|
BeanUtils.copyProperties(batchSendCourseDTO, fsCourseLinkCreateParam);
|