Commit 1a32ae99 authored by shiyu's avatar shiyu

发送模板消息3

parent ae0ba311
......@@ -247,8 +247,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
logger.info(">>>>> 分销商id :{}, 获取openid失败 <<<<<", distributionOrder.getSellerId());
}
//发送给买家
if (com.xxdxxs.utils.StringUtils.hasLength(distributionOrder.getBuyerOpenid())) {
sendMsgService.sendDeliveryTempletMsg(distributionOrder.getBuyerOpenid(), deliveryNoticeMsg);
String buyerOpenId = sendMsgService.getOpenIdByUserId(distributionOrder.getBuyerId());
if (com.xxdxxs.utils.StringUtils.hasLength(buyerOpenId)) {
sendMsgService.sendDeliveryTempletMsg(buyerOpenId, deliveryNoticeMsg);
} else {
logger.info(">>>>> 买家openid为空, 发送消息失败 <<<<<");
}
......
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 to comment