|
|
|
@@ -227,6 +227,8 @@ public class WxCouponPasswordController extends BaseController { |
|
|
|
return new ResultData(ErrorCode.COUPON_IS_EMPTY); |
|
|
|
} |
|
|
|
|
|
|
|
Long memberId = getMemberId(); |
|
|
|
|
|
|
|
Map retMap = new HashMap(); |
|
|
|
retMap.put("title", coupon.getTitle()); |
|
|
|
retMap.put("couponPasswordId", password.getId()); |
|
|
|
@@ -240,6 +242,9 @@ public class WxCouponPasswordController extends BaseController { |
|
|
|
if (null != user) { |
|
|
|
retMap.put("ownerPhone", user.getPhone()); |
|
|
|
} |
|
|
|
if (owner.equals(memberId)) { |
|
|
|
retMap.put("owned", EnumYesOrNo.YES.getCode()); |
|
|
|
} |
|
|
|
} |
|
|
|
retMap.put("remainAmount", cardInfo.getRemainingAmount()); |
|
|
|
retMap.put("eCardId", cardInfo.getId()); |
|
|
|
|