From 84a8fe9d310f1587bc05516c530d951b8fbd8e8e Mon Sep 17 00:00:00 2001 From: "james.zhao" Date: Sun, 3 Feb 2019 22:57:09 +0800 Subject: [PATCH] update --- .../customers/core/impls/CustomerRewardLogServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/customers/core/impls/CustomerRewardLogServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/customers/core/impls/CustomerRewardLogServiceImpl.java index f5f6c2fa8..a6ababb6c 100644 --- a/src/main/java/au/com/royalpay/payment/manage/customers/core/impls/CustomerRewardLogServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/customers/core/impls/CustomerRewardLogServiceImpl.java @@ -114,8 +114,8 @@ public class CustomerRewardLogServiceImpl implements CustomerRewardLogService { } } if(channel.equals("Alipay")){ - if(cusRewardLogsMapper.takeRewardNotWechat(now,openid,DateFormatUtils.format(now,"yyyy-MM-dd")) > 0){ - JSONObject reward = cusRewardLogsMapper.findRewardByFakeOpenId(redpack_openid); + if(cusRewardLogsMapper.takeRewardNotWechat(now,fakeOpenId,DateFormatUtils.format(now,"yyyy-MM-dd")) > 0){ + JSONObject reward = cusRewardLogsMapper.findRewardByFakeOpenId(fakeOpenId); Assert.notNull(reward, "reward is null"); reward.put("openid",openid); reward.put("status",1);