使用postman调用是正常的,但是在代码里调用就报错。
使用语言c#
string? access_token = _jObject["access_token"]?.ToString();
var parameters = new ParamObj
{
scene = "23",
page = "pages/end/end",
check_path = "false"
};
var urlOfCode = $"/wxa/getwxacodeunlimit?access_token={access_token}";
var requestContent = JsonContent.Create(parameters);
httpReponseMessage = await client.PostAsync(urlOfCode, requestContent);
var result = await httpReponseMessage.Content.ReadAsByteArrayAsync();
你这传的参数正不正确哦