|
|
|
@ -131,7 +131,7 @@ public class httpClientUtils {
|
|
|
|
|
|
|
|
|
|
// 将对象转换为JSON字符串
|
|
|
|
|
jsonBody = objectMapper.writeValueAsString(response);
|
|
|
|
|
log.info("准备发送的数据: {}", jsonBody);
|
|
|
|
|
// log.info("准备发送的数据: {}", jsonBody);
|
|
|
|
|
|
|
|
|
|
// 设置请求体
|
|
|
|
|
StringEntity entity = new StringEntity(jsonBody, "UTF-8");
|
|
|
|
@ -144,7 +144,7 @@ public class httpClientUtils {
|
|
|
|
|
String responseBody = responseEntity != null ? EntityUtils.toString(responseEntity, "UTF-8") : "";
|
|
|
|
|
|
|
|
|
|
if (statusCode == 200) {
|
|
|
|
|
log.info("发送处理结果到回调接口成功,响应状态码: {}", statusCode);
|
|
|
|
|
// log.info("发送处理结果到回调接口成功,响应状态码: {}", statusCode);
|
|
|
|
|
log.info("回调接口响应内容: {}", responseBody);
|
|
|
|
|
success = true;
|
|
|
|
|
} else {
|
|
|
|
@ -191,7 +191,7 @@ public class httpClientUtils {
|
|
|
|
|
*
|
|
|
|
|
* @param message 通知消息
|
|
|
|
|
*/
|
|
|
|
|
private static void sendWechatNotification(String message) {
|
|
|
|
|
public static void sendWechatNotification(String message) {
|
|
|
|
|
try {
|
|
|
|
|
String webhookUrl = WECHAT_WEBHOOK_URL;
|
|
|
|
|
HttpPost httpPost = new HttpPost(webhookUrl);
|
|
|
|
|