|
@@ -198,7 +198,7 @@ public class CourseCoursewareServiceImpl extends ServiceImpl<CourseCoursewareDao
|
|
}
|
|
}
|
|
// 判断是否为MP3
|
|
// 判断是否为MP3
|
|
if (detail.getAudioType().equals(AudioTypeEnum.MIDI)) {
|
|
if (detail.getAudioType().equals(AudioTypeEnum.MIDI)) {
|
|
- throw new BizException("当前曲目不能加入课件");
|
|
|
|
|
|
+ throw new BizException("该曲目不支持添加到课件");
|
|
}
|
|
}
|
|
|
|
|
|
if (detail.getPlay().equals(YesOrNoEnum.NO)) {
|
|
if (detail.getPlay().equals(YesOrNoEnum.NO)) {
|
|
@@ -207,7 +207,7 @@ public class CourseCoursewareServiceImpl extends ServiceImpl<CourseCoursewareDao
|
|
} else if (detail.getPaymentType().contains("CHARGE")) {
|
|
} else if (detail.getPaymentType().contains("CHARGE")) {
|
|
throw new BizException("请先购买曲目");
|
|
throw new BizException("请先购买曲目");
|
|
} else {
|
|
} else {
|
|
- throw new BizException("不可播放");
|
|
|
|
|
|
+ throw new BizException("该曲目不支持添加到课件");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.saveOrUpdate(courseCourseware);
|
|
this.saveOrUpdate(courseCourseware);
|