微信筛选店铺 店铺分组 运费加价

This commit is contained in:
wule committed 2026-01-30 20:02:32 +08:00
1 parent b4fa5cacb1
commit afaabea1fa
33 files changed
+1338 -536

No files matched your search

+31
View File
@@ -308,6 +308,7 @@ namespace TemuKJD
Task.Run(()=>
{
ReadWxCate();
ReadWxCateBound();
});
}
@@ -332,6 +333,36 @@ namespace TemuKJD
}
}
void ReadWxCateBound()
{
string filePath = Path.Combine(Environment.CurrentDirectory, "temp\\wxCatBound");
if (!File.Exists(filePath))
return;
try
{
var catTxts = FileBase.ReadAllLines(filePath);
foreach (var catTxt in catTxts)
{
if (catTxt.StartsWith("类目id"))
continue;
var catTxtArr = catTxt.Split(',');
GlobalConfig.WxCatBoundList.Add(new WxCatBoundInfo()
{
cat_bound = catTxtArr[3].ParseToInt(),
full_cat_name = catTxtArr[2],
leaf_id = catTxtArr[0].ParseToLong(),
leaf_name = catTxtArr[1],
});
}
}
catch (Exception ex)
{
BaseMsgForm.ShowError("类目价格获取失败:" + ex.Message);
}
if (GlobalConfig.WxCatBoundList == null)
GlobalConfig.WxCatBoundList = new ConcurrentList<WxCatBoundInfo>();
}
public void SetTitle()
{
lblVersionInfo.Text = BaseClass.ToolName + " V" + BaseClass.Varsion + " - " + BaseClass.NickName;