修复bug

This commit is contained in:
18942506660
2024-10-31 09:26:45 +08:00
parent 755dde844d
commit 14a1eac0ea
3 changed files with 5 additions and 3 deletions

View File

@@ -25,6 +25,7 @@ using WMS.Web.Core.Help;
using static System.Net.WebRequestMethods;
using WMS.Web.Domain.Values;
using WMS.Web.Core.Dto.JuShuiTan;
using System.Threading;
namespace WMS.Web.Domain.Services.Public
{
@@ -142,6 +143,7 @@ namespace WMS.Web.Domain.Services.Public
int num = res.Total / 800;
for (int i = 1; i <= num; i++)
{
Thread.Sleep(1000);//怕拉取过于频繁接口限制
dto.offset = i;
if (i == num) dto.length = res.Total - (num * 800);
resUrl = await GetStr<LingXingInventoryRequest>("/erp/sc/routing/data/local_inventory/inventoryDetails", dto);