This commit is contained in:
Leo
2025-12-05 23:02:02 +08:00
parent c2be15e3f5
commit a893f3cd61
2 changed files with 5 additions and 2 deletions

View File

@@ -69,7 +69,9 @@ public class OrderUtil {
String content = getFormattedOrderInfo(orderRow); String content = getFormattedOrderInfo(orderRow);
String wxId = getWxidFromJdid(orderRow.getUnionId().toString()); String wxId = getWxidFromJdid(orderRow.getUnionId().toString());
// 根据unionId获取接收人列表 // 根据unionId获取接收人列表
String touser = WXUtil.getTouserByUnionId(orderRow.getUnionId().toString()); String unionIdStr = orderRow.getUnionId().toString();
String touser = WXUtil.getTouserByUnionId(unionIdStr);
logger.info("京粉订单推送 - unionId={}, wxId={}, touser={}", unionIdStr, wxId, touser);
if (Util.isNotEmpty(wxId)) { if (Util.isNotEmpty(wxId)) {
wxUtil.sendTextMessage(wxId, content, 1, wxId, true, touser); wxUtil.sendTextMessage(wxId, content, 1, wxId, true, touser);

View File

@@ -185,7 +185,8 @@ public class WXUtil {
jdidToWxidMap.put(superAdmin.getUnionId(), superAdmin.getWxid()); jdidToWxidMap.put(superAdmin.getUnionId(), superAdmin.getWxid());
jdidToRemarkMap.put(superAdmin.getUnionId(), superAdmin.getName()); jdidToRemarkMap.put(superAdmin.getUnionId(), superAdmin.getName());
} }
logger.info("超级管理员:{} {}", superAdmin.getName(), superAdmin.getWxid()); logger.info("超级管理员:{} {}, unionId={}, touser={}",
superAdmin.getName(), superAdmin.getWxid(), superAdmin.getUnionId(), superAdmin.getTouser());
} }
/* 内部管理群 */ /* 内部管理群 */