Commit 92485a66 by zhangchen

1.更改判断条件

parent 88e62888
...@@ -6,6 +6,7 @@ import java.math.BigDecimal; ...@@ -6,6 +6,7 @@ import java.math.BigDecimal;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import com.ctrip.fun.common.core.util.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -110,7 +111,7 @@ public class CommuneNotifyService extends AbstractNotifyService { ...@@ -110,7 +111,7 @@ public class CommuneNotifyService extends AbstractNotifyService {
voucherService.sendVoucherForPlaceOrderByConfig(uid, order.getOrderId()+"", true, buyVoucherActivity.getVoucherConfig()); voucherService.sendVoucherForPlaceOrderByConfig(uid, order.getOrderId()+"", true, buyVoucherActivity.getVoucherConfig());
//给推荐人发现金红包 //给推荐人发现金红包
if(buyVoucherActivity.getIsSendRedPacket() == 1 && communeOrderItem.getRecommendUid() != null){ if(buyVoucherActivity.getIsSendRedPacket() != null && buyVoucherActivity.getIsSendRedPacket() == 1 && !StringUtils.isEmpty(communeOrderItem.getRecommendUid())){
UserExt user = userExtDao.getByUid(communeOrderItem.getRecommendUid()); UserExt user = userExtDao.getByUid(communeOrderItem.getRecommendUid());
WeiXinAtcion.weixinPlay1(user.getMiniAppOpenId(), buyVoucherActivity.getRedPacketPrice(), order.getOrderNo()); WeiXinAtcion.weixinPlay1(user.getMiniAppOpenId(), buyVoucherActivity.getRedPacketPrice(), order.getOrderNo());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment