瀏覽代碼

APP 催课问题修复

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

+ 4 - 2
fs-company-app/src/main/java/com/fs/app/controller/FsUserCourseVideoController.java

@@ -327,7 +327,7 @@ public class FsUserCourseVideoController extends AppBaseController {
     @ApiOperation("会员批量发送课程消息")
     @PostMapping("/batchSendCourse")
     public OpenImResponseDTO batchSendCourse(@RequestBody BatchSendCourseDTO batchSendCourseDTO) throws JsonProcessingException {
-        if (CollectionUtils.isNotEmpty(batchSendCourseDTO.getUserIds())){
+        if (CollectionUtils.isEmpty(batchSendCourseDTO.getUserIds())){
             throw new RuntimeException("请选择会员信息!!");
         }
         // 生成看课短链
@@ -336,7 +336,9 @@ public class FsUserCourseVideoController extends AppBaseController {
         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);
     }