修复httpservice获取分页long丢失精度问题

This commit is contained in:
2025-12-26 12:33:13 +08:00
parent 030299fa53
commit 13cc258cad
3 changed files with 8 additions and 3 deletions

View File

@@ -72,10 +72,11 @@ namespace Atomx.Admin.Client.Services
page = 1;
}
url = $"{url}?page={page}&size={size}";
var json = data.ToJson();
using var request = new HttpRequestMessage(HttpMethod.Post, url)
{
Content = JsonContent.Create(data)
Content = new StringContent(json, Encoding.UTF8, "application/json")
//Content = JsonContent.Create(data)
};
AttachCookieIfServer(request);