优化拍单代发相关流程
This commit is contained in:
1 parent
abb2759bdf
commit
259b8027d3
3 files changed
+211
-150
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user