1、获取微信支付的回调的数据

Stream stream = HttpContext.Request.Body;
byte[] buffer = new byte[HttpContext.Request.ContentLength.Value];
stream.Read(buffer, 0, buffer.Length);
string content = Encoding.UTF8.GetString(buffer);
_log.Info($"微信返回数据:{content}");

相关文章:

  • 2021-10-15
  • 2021-08-24
  • 2022-01-24
  • 2021-10-26
  • 2021-10-15
  • 2021-10-15
  • 2022-12-23
  • 2021-10-15
猜你喜欢
  • 2022-12-23
  • 2017-11-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
相关资源
相似解决方案