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());