Compare commits

..
2 Commits
Author SHA1 Message Date
xrain 2ed4605a2c PageResponse修正 2026-06-23 17:47:42 +08:00
xrain ceeea2c451 http客户端加密debug输出,版本升级 2026-06-23 16:13:04 +08:00
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ public class SimApiBaseResponse(int code = 200, string message = "成功")
/// <typeparam name="T"></typeparam> /// <typeparam name="T"></typeparam>
public class PageResponse<T> public class PageResponse<T>
{ {
public T? List { get; set; } public T[] List { get; set; } = [];
public int Page { get; set; } = 1; public int Page { get; set; } = 1;
public int Count { get; set; } = 20; public int Count { get; set; } = 20;
public int Total { get; set; } public int Total { get; set; }
+2 -1
View File
@@ -67,7 +67,7 @@ public class SimApiHttpClient(SimApiOptions? apiOptions = null, ILogger<SimApiHt
{ {
url += $"?{AppIdName}={AppId}"; url += $"?{AppIdName}={AppId}";
} }
logger?.LogDebug($"[HTTPCLIENT请求][加密前BODY] {url}\n{SimApiUtil.Json(body)}\n");
var req = new SimApiOneFieldRequest<string> var req = new SimApiOneFieldRequest<string>
{ {
Data = SimApiAesUtil.Encrypt(SimApiUtil.Json(body), AppKey) Data = SimApiAesUtil.Encrypt(SimApiUtil.Json(body), AppKey)
@@ -85,6 +85,7 @@ public class SimApiHttpClient(SimApiOptions? apiOptions = null, ILogger<SimApiHt
/// <returns></returns> /// <returns></returns>
public T AesSignQuery<T>(string url, object body, Dictionary<string, string>? queries = null) public T AesSignQuery<T>(string url, object body, Dictionary<string, string>? queries = null)
{ {
logger?.LogDebug($"[HTTPCLIENT请求][加密前BODY] {url}\n{SimApiUtil.Json(body)}\n");
var req = new SimApiOneFieldRequest<string> var req = new SimApiOneFieldRequest<string>
{ {
Data = SimApiAesUtil.Encrypt(SimApiUtil.Json(body), AppKey) Data = SimApiAesUtil.Encrypt(SimApiUtil.Json(body), AppKey)