优化:WebApi接收方式

This commit is contained in:
若汝棋茗
2021-07-03 00:24:47 +08:00
parent eff41f0b07
commit 607af2556b
3 changed files with 7 additions and 7 deletions

View File

@@ -56,7 +56,8 @@ namespace RRQMSocket.RPC.WebApi
{
if (i == 0)
{
methodInvoker.Parameters[i] = SerializeConvert.XmlDeserializeFromBytes(httpRequest.Body.ToArray(), methodInstance.ParameterTypes[0]);
methodInvoker.Parameters[i] = SerializeConvert.XmlDeserializeFromBytes(
httpRequest.Encoding.GetBytes(httpRequest.BodyString), methodInstance.ParameterTypes[0]);
}
else
{