| @@ -80,10 +80,8 @@ public class WxCouponPasswordController extends BaseController { | |||||
| if (couponPassword.getIsStop().intValue() == EnumYesOrNo.YES.getCode().intValue()) { | if (couponPassword.getIsStop().intValue() == EnumYesOrNo.YES.getCode().intValue()) { | ||||
| return new ResultData(ErrorCode.COUPON_IS_EMPTY.getCode(),"卡密已经停用"); | return new ResultData(ErrorCode.COUPON_IS_EMPTY.getCode(),"卡密已经停用"); | ||||
| } | } | ||||
| WxCUserBasicInfo member = userService.getById(memberId,getFinalTenantId()); | WxCUserBasicInfo member = userService.getById(memberId,getFinalTenantId()); | ||||
| if(member == null) { | if(member == null) { | ||||
| logger.error("会员用户未找到: " + memberId); | |||||
| throw new MallinkException(ErrorCode.USER_IS_EMPTY.getCode(), "会员用户未找到" + memberId); | throw new MallinkException(ErrorCode.USER_IS_EMPTY.getCode(), "会员用户未找到" + memberId); | ||||
| } | } | ||||
| @@ -92,9 +90,11 @@ public class WxCouponPasswordController extends BaseController { | |||||
| return new ResultData(ErrorCode.COUPON_IS_EMPTY); | return new ResultData(ErrorCode.COUPON_IS_EMPTY); | ||||
| } | } | ||||
| if (coupon.getStatus().equals(EnumCouponStatus.COUPON_STATUS_TAKE_OFFF.getCode())) { | if (coupon.getStatus().equals(EnumCouponStatus.COUPON_STATUS_TAKE_OFFF.getCode())) { | ||||
| logger.error("此券已作废:" + coupon.getId()); | |||||
| return new ResultData(ErrorCode.COUPON_IS_TAKE_OFF); | return new ResultData(ErrorCode.COUPON_IS_TAKE_OFF); | ||||
| } | } | ||||
| if (coupon.getPrice() <= 0) { | |||||
| return new ResultData(ErrorCode.COUPON_IS_TAKE_OFF.getCode(),"面值未设置,请联系管理员."); | |||||
| } | |||||
| // 卡密领取卡券 | // 卡密领取卡券 | ||||
| Integer pwdStatus = couponPassword.getStatus(); | Integer pwdStatus = couponPassword.getStatus(); | ||||