|
@@ -90,15 +90,15 @@ public class MemberPriceSettingsServiceImpl extends ServiceImpl<MemberPriceSetti
|
|
|
public HttpResponseResult<OrderCreateRes> orderCreate(OrderReq.OrderReqInfo orderReqInfo) {
|
|
|
MemberPriceSettingsVo detail = detail(Long.parseLong(orderReqInfo.getBizContent().toString()));
|
|
|
if (null == detail) {
|
|
|
- return HttpResponseResult.failed("未找到会员卡信息");
|
|
|
+ return HttpResponseResult.failed("产品信息已更新,请重新选择");
|
|
|
}
|
|
|
|
|
|
if (!orderReqInfo.getOrderType().name().equals(detail.getVipType().name())) {
|
|
|
- return HttpResponseResult.failed("会员卡类型不匹配");
|
|
|
+ return HttpResponseResult.failed("产品信息已更新,请重新选择");
|
|
|
}
|
|
|
|
|
|
if (Boolean.FALSE.equals(detail.getStatus())) {
|
|
|
- return HttpResponseResult.failed("会员卡已下架");
|
|
|
+ return HttpResponseResult.failed("产品信息已更新,请重新选择");
|
|
|
}
|
|
|
|
|
|
|
|
@@ -350,14 +350,14 @@ public class MemberPriceSettingsServiceImpl extends ServiceImpl<MemberPriceSetti
|
|
|
public void orderCreate(UserPaymentOrderWrapper.OrderGoodsInfo orderGoodsInfo) {
|
|
|
MemberPriceSettingsVo detail = detail(Long.parseLong(orderGoodsInfo.getBizContent().toString()));
|
|
|
if (null == detail) {
|
|
|
- throw new BizException("未找到会员卡信息");
|
|
|
+ throw new BizException("产品信息已更新,请重新选择");
|
|
|
}
|
|
|
|
|
|
if (!orderGoodsInfo.getGoodType().name().equals(detail.getVipType().name())) {
|
|
|
- throw new BizException("会员卡类型不匹配");
|
|
|
+ throw new BizException("产品信息已更新,请重新选择");
|
|
|
}
|
|
|
if (Boolean.FALSE.equals(detail.getStatus())) {
|
|
|
- throw new BizException("会员卡已下架");
|
|
|
+ throw new BizException("产品信息已更新,请重新选择");
|
|
|
}
|
|
|
|
|
|
// 判断会员剩余天数是否改变
|