浏览代码

批量发送,取消实时发送

xgb 1 天之前
父节点
当前提交
e93ca3d844
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      fs-company-app/src/main/java/com/fs/app/controller/FsUserCourseVideoController.java

+ 5 - 0
fs-company-app/src/main/java/com/fs/app/controller/FsUserCourseVideoController.java

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