zouxuan 2 роки тому
батько
коміт
e7343f5049

+ 2 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/VideoLessonEvaluateServiceImpl.java

@@ -9,6 +9,7 @@ import com.yonge.cooleshow.biz.dal.dao.VideoLessonEvaluateDao;
 import com.yonge.cooleshow.biz.dal.service.VideoLessonEvaluateService;
 import com.yonge.cooleshow.biz.dal.vo.VideoLessonEvaluateVo;
 import com.yonge.cooleshow.common.enums.YesOrNoEnum;
+import com.yonge.toolset.base.exception.BizException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.stereotype.Service;
@@ -58,7 +59,7 @@ public class VideoLessonEvaluateServiceImpl extends ServiceImpl<VideoLessonEvalu
 
         //校验用户是否已购该课或未本课老师
         if (!(userId.equals(teacherId)) && !studentIdList.contains(userId)) {
-            throw new RuntimeException("未购买该课程无法参与讨论");
+            throw new BizException("未购买该课程无法参与讨论");
         }
 
 //        List<String> typeList = Arrays.asList(userType.split(","));