|
@@ -202,7 +202,9 @@ public class CourseCoursewareServiceImpl extends ServiceImpl<CourseCoursewareDao
|
|
|
}
|
|
|
|
|
|
if (detail.getPlay().equals(YesOrNoEnum.NO)) {
|
|
|
- if (detail.getPaymentType().contains("VIP")) {
|
|
|
+ if (detail.getPaymentType().contains("VIP") && detail.getPaymentType().contains("CHARGE")) {
|
|
|
+ throw new BizException("请先开通会员或购买曲目");
|
|
|
+ } else if (detail.getPaymentType().contains("VIP")) {
|
|
|
throw new BizException("请先开通会员");
|
|
|
} else if (detail.getPaymentType().contains("CHARGE")) {
|
|
|
throw new BizException("请先购买曲目");
|