fix encourage

master
eason 6 years ago
parent f133e71894
commit f8df5a6079

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

Loading…
Cancel
Save