同步物流单功能

This commit is contained in:
wule committed 2026-09-24 10:29:44 +08:00
1 parent 78ef8eedf3
commit ce8fb3f311
21 files changed
+952 -198

No files matched your search

+24 -1
View File
@@ -40,6 +40,7 @@ using System.Xml.Linq;
using Work;
using Work._29Tools.BLL;
using Work._29Tools.Forms.UserForms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace _29WxOrderWpf
{
@@ -89,7 +90,8 @@ namespace _29WxOrderWpf
Task.Run(() =>
{
GetServerShop();
});
GetShopSupplier(GlobalConfig.ShopLoginList.ToList());
});
Task.Run(() =>
{
GetPddBuyer();
@@ -349,6 +351,27 @@ namespace _29WxOrderWpf
tList.RemoveAll(ta => ta.IsFaulted || ta.IsCompleted || ta.IsCanceled); Thread.Sleep(100);
}
}
public void GetShopSupplier(List<ShopLoginInfo> shops)
{
// 同步单代发申请,放在拍单时候做
while (GlobalConfig.BuyConfig.IsSyncDirectBuyOrderWaybill == false)
{
Thread.Sleep(500);
}
foreach (var shop in shops)
{
var rst = new WxApiBLL().GetShopSupplier(shop);
if (rst.Contains("wx7809625286c28f2f") || rst.Contains("百川日用"))
continue;
rst = new WxApiBLL().SetShopSupplier(shop, "wx7809625286c28f2f", "4431685489938137094");
if (!rst.Contains("\"errcode\":0"))
{
//return;
}
}
}
#endregion
#region 读取拼多多买手号