|
@@ -56,7 +56,18 @@ public class WxPushReceptionController {
|
|
|
@RequestParam(name = "msg_signature", required = false) String msgSignature,
|
|
|
@RequestBody String encryptedXmlBodyText,
|
|
|
@PathVariable String appId) {
|
|
|
- LOGGER.info("微信通知转发服务-收到微信消息与事件通知-{}", encryptedXmlBodyText);
|
|
|
+ LOGGER.info("微信通知转发服务-收到微信消息与事件通知");
|
|
|
+
|
|
|
+ String urlParams = String.format("?timestamp=%s&nonce=%s&msg_signature=%s", timestamp, nonce, msgSignature);
|
|
|
+
|
|
|
+ for (String url : downstream.getMsgUrls()) {
|
|
|
+ try {
|
|
|
+ HttpClientUtils.postData(url + appId + urlParams, encryptedXmlBodyText);
|
|
|
+ }catch (Exception e) {
|
|
|
+ // ignore
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
return "success";
|
|
|
}
|
|
|
}
|