|
|
@@ -215,6 +215,14 @@ public class WxPayServiceImpl implements WxPayService {
|
|
|
return new Object[]{requestParam, parser, no};
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 回调签名验证失败排查指引 (body中字段顺序变化造成验签失败是个大坑)
|
|
|
+ * https://developers.weixin.qq.com/community/pay/article/doc/0004a879f60928d89340b8b9f64c13
|
|
|
+ * https://github.com/wechatpay-apiv3/wechatpay-apache-httpclient/issues/152
|
|
|
+ * @param request
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@SneakyThrows
|
|
|
Object[] handleWxNotify2(HttpServletRequest request) {
|
|
|
var no = RandomUtil.randomInt(1000, 9999);
|
|
|
@@ -233,8 +241,6 @@ public class WxPayServiceImpl implements WxPayService {
|
|
|
result.write(buffer, 0, lenght);
|
|
|
}
|
|
|
var body = result.toString();
|
|
|
- LOGGER.info("【body1】:{}",body);
|
|
|
-
|
|
|
|
|
|
LOGGER.info("微信支付回调{}:\nBody数据:\n{}", no, result);
|
|
|
|