From f8df5a607948989269f3d7def20adf2c5d6b4246 Mon Sep 17 00:00:00 2001 From: eason Date: Fri, 13 Jul 2018 21:06:48 +0800 Subject: [PATCH] fix encourage --- .../manage/customers/core/impls/EncourageUseProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/customers/core/impls/EncourageUseProcessor.java b/src/main/java/au/com/royalpay/payment/manage/customers/core/impls/EncourageUseProcessor.java index 1cd71fc5f..b092caf4a 100644 --- a/src/main/java/au/com/royalpay/payment/manage/customers/core/impls/EncourageUseProcessor.java +++ b/src/main/java/au/com/royalpay/payment/manage/customers/core/impls/EncourageUseProcessor.java @@ -129,7 +129,7 @@ public class EncourageUseProcessor implements Ordered, EncourageService { logger.debug("测试模式,不是管理员"); return new JSONObject(); } - JSONObject member = customerMembershipMapper.findByPaymentOpenId(openId); + JSONObject member = customerMembershipMapper.findByPaymentOpenId(visitorOpenId); if (member == null) { member = new JSONObject(); if ("Wechat".equals(channel)){ @@ -138,7 +138,7 @@ public class EncourageUseProcessor implements Ordered, EncourageService { logger.debug("用户关系不存在"); return new JSONObject(); } - member.put("payment_openid", openId); + member.put("payment_openid", visitorOpenId); member.put("kanga_openid", relation.getString("kanga_openid")); member.put("redpack_openid", relation.getString("redpack_openid")); member.put("attend_time", new Date());