Commit 4dbaf5fe by chongli

修复已经结束的活动通过历史分享可继续购买的bug

parent 2d2b6f9e
......@@ -217,6 +217,9 @@ public class CommuneOrderService extends AbstractOrderService<CommuneOrderBean,
if(buyoucherActivity==null){
throw new OrderException(-41, "没有对应的活动,请检查");
}
if(buyoucherActivity.getValid()==0){
throw new OrderException(-41, "该活动已经结束");
}
communeOrderBean.setOrderName(buyoucherActivity.getActivityName());
if (StringUtils.isEmpty(communeOrderBean.getPayMode())) {
communeOrderBean.setPayMode(ProductPaymentTypeEnum.PREPAY.getName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment