修复bug

This commit is contained in:
18942506660
2024-10-31 17:02:51 +08:00
parent 3c1f064d8a
commit b5165016d2
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ namespace WMS.Web.Core.Dto.LingXing
public class LingXingRequest
{
/// <summary>
/// 页码
/// 不是页码 是从第几条数据开始 如果是第二页的话 就是1*800
/// </summary>
[JsonProperty("offset")]
public int offset { get; set; } = 0;

View File

@@ -146,7 +146,7 @@ namespace WMS.Web.Domain.Services.Public
for (int i = 1; i <= num; i++)
{
Thread.Sleep(1000);//怕拉取过于频繁接口限制
dto.offset = i;
dto.offset = i * 800;
if (i == num) dto.length = res.Total - (num * 800);
var resUrl_f = await GetStr<LingXingInventoryRequest>("/erp/sc/routing/data/local_inventory/inventoryDetails", dto);
if (!resUrl_f.IsSuccess) return Result<List<LingXingInventoryResponse>>.ReFailure(ResultCodes.LingXingUrlError);