Browse Source

APP 催课问题修复

xgb 3 ngày trước cách đây
mục cha
commit
ade62c01b4

+ 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);
     }