|
@@ -5,7 +5,6 @@ import com.cybertogether.wx.notice.infrastructure.HttpClientUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.util.StringUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
@@ -52,11 +51,12 @@ public class WxPushReceptionController {
|
|
|
* 开发配置-开发资料-消息与事件接收配置
|
|
|
*/
|
|
|
@PostMapping("/msgEvent/{appId}")
|
|
|
- public String receptionMsgEvent(@RequestBody String requestBody, @PathVariable String appId) {
|
|
|
- if (!StringUtils.hasText(appId)) {
|
|
|
- appId = "空";
|
|
|
- }
|
|
|
- LOGGER.info("微信通知转发服务-收到微信消息与事件通知-{}-appId:" + appId, requestBody);
|
|
|
+ public String receptionMsgEvent(@RequestParam("timestamp") String timestamp,
|
|
|
+ @RequestParam("nonce") String nonce,
|
|
|
+ @RequestParam("msg_signature") String msgSignature,
|
|
|
+ @RequestBody String encryptedXmlBodyText,
|
|
|
+ @PathVariable String appId) {
|
|
|
+ LOGGER.info("微信通知转发服务-收到微信消息与事件通知-{}", encryptedXmlBodyText);
|
|
|
return "success";
|
|
|
}
|
|
|
}
|