瀏覽代碼

1、调整校验

yfh 3 天之前
父節點
當前提交
16750152f3
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      fs-company-app/src/main/java/com/fs/app/controller/FsUserCourseVideoController.java

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

@@ -327,6 +327,9 @@ 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);