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