1
This commit is contained in:
@@ -1109,8 +1109,12 @@ public class JDOrderController extends BaseController {
|
||||
order.getId(), distributionMark);
|
||||
}
|
||||
|
||||
// 记录完整的推送参数(用于调试)
|
||||
String jsonBody = pushParam.toJSONString();
|
||||
logger.info("企业微信推送完整参数 - 订单ID: {}, JSON: {}", order.getId(), jsonBody);
|
||||
|
||||
// 使用支持自定义header的HTTP请求
|
||||
String pushResult = sendPostWithHeaders(pushUrl, pushParam.toJSONString(), token);
|
||||
String pushResult = sendPostWithHeaders(pushUrl, jsonBody, token);
|
||||
logger.info("企业应用推送调用结果 - 订单ID: {}, waybill_no: {}, 推送结果: {}",
|
||||
order.getId(), waybillNo, pushResult);
|
||||
|
||||
|
||||
@@ -166,8 +166,12 @@ public class LogisticsServiceImpl implements ILogisticsService {
|
||||
order.getId(), distributionMark);
|
||||
}
|
||||
|
||||
// 记录完整的推送参数(用于调试)
|
||||
String jsonBody = pushParam.toJSONString();
|
||||
logger.info("企业微信推送完整参数 - 订单ID: {}, JSON: {}", order.getId(), jsonBody);
|
||||
|
||||
// 使用支持自定义header的HTTP请求
|
||||
String pushResult = sendPostWithHeaders(PUSH_URL, pushParam.toJSONString(), PUSH_TOKEN);
|
||||
String pushResult = sendPostWithHeaders(PUSH_URL, jsonBody, PUSH_TOKEN);
|
||||
if (pushResult == null || pushResult.trim().isEmpty()) {
|
||||
logger.warn("企业应用推送响应为空 - 订单ID: {}, waybill_no: {}", order.getId(), waybillNo);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user