优化拍单代发相关流程

This commit is contained in:
wule committed 2026-09-27 11:08:01 +08:00
1 parent abb2759bdf
commit 259b8027d3
3 files changed
+211 -150

No files matched your search

+14 -6
View File
@@ -362,14 +362,22 @@ namespace _29WxOrderWpf
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"))
try
{
//return;
var jArr = JsonHelper.JObjectParse(rst)["list"] as JArray;
// appid "wx7809625286c28f2f" name "百川日用";
if (jArr.Any(aa => aa["appid"].ParseToString() == "wx7809625286c28f2f" && aa["status"].ParseToInt() == 1))
//if (rst.Contains("wx7809625286c28f2f") || rst.Contains("百川日用"))
continue;
rst = new WxApiBLL().SetShopSupplier(shop, "wx7809625286c28f2f", "4431685489938137094");
if (!rst.Contains("\"errcode\":0"))
{
//return;
}
}
catch
{ }
}
}
#endregion