修复bug
This commit is contained in:
@@ -11,7 +11,7 @@ namespace WMS.Web.Core.Dto.LingXing
|
|||||||
public class LingXingRequest
|
public class LingXingRequest
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 页码
|
/// 不是页码 是从第几条数据开始 如果是第二页的话 就是1*800
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[JsonProperty("offset")]
|
[JsonProperty("offset")]
|
||||||
public int offset { get; set; } = 0;
|
public int offset { get; set; } = 0;
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ namespace WMS.Web.Domain.Services.Public
|
|||||||
for (int i = 1; i <= num; i++)
|
for (int i = 1; i <= num; i++)
|
||||||
{
|
{
|
||||||
Thread.Sleep(1000);//怕拉取过于频繁接口限制
|
Thread.Sleep(1000);//怕拉取过于频繁接口限制
|
||||||
dto.offset = i;
|
dto.offset = i * 800;
|
||||||
if (i == num) dto.length = res.Total - (num * 800);
|
if (i == num) dto.length = res.Total - (num * 800);
|
||||||
var resUrl_f = await GetStr<LingXingInventoryRequest>("/erp/sc/routing/data/local_inventory/inventoryDetails", dto);
|
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);
|
if (!resUrl_f.IsSuccess) return Result<List<LingXingInventoryResponse>>.ReFailure(ResultCodes.LingXingUrlError);
|
||||||
|
|||||||
Reference in New Issue
Block a user