소스 검색

红德堂-手动看课发红包前判断fsUser状态

Long 2 주 전
부모
커밋
aa0e3c8c89
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      fs-service/src/main/java/com/fs/course/service/impl/FsUserCourseVideoServiceImpl.java

+ 3 - 0
fs-service/src/main/java/com/fs/course/service/impl/FsUserCourseVideoServiceImpl.java

@@ -1383,6 +1383,9 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService {
         if (user == null) {
             return R.error("未识别到用户信息");
         }
+        if (user.getStatus() == 0) {
+            return R.error("会员被停用,无权限,请联系客服!");
+        }
 
         FsCourseWatchLog log = courseWatchLogMapper.getWatchCourseVideoByFsUser(param.getUserId(), param.getVideoId(), param.getCompanyUserId());
         if (log == null) {