1库存上传重组标题功能 2优化国际版cookie登录功能 3拒绝跟架功能移植新接口完成

This commit is contained in:
wule committed 2025-07-31 18:46:49 +08:00
1 parent 096e1a450d
commit c203c161a2
46 files changed
+976 -6690

No files matched your search

+12 -1
View File
@@ -20,6 +20,7 @@ using System.Threading;
using System.Threading.Tasks;
using Work;
using Work.DouyinApiClass;
using AllBase.Model.Param.TemuProductManage;
namespace TemuKJD
{
@@ -30,8 +31,12 @@ namespace TemuKJD
{
InitOem();
InitProxy();
GlobalConfig.ProductWords = NaiBa.Util.Helper.ConfigHelper.LoadConfig<TemuProductWords>("product_words");
if (GlobalConfig.ProductWords == null)
GlobalConfig.ProductWords = new TemuProductWords();
// 抖音账号登录信息
#region 抖音账号登录信息
try { GlobalConfig.DouUserCookies = NaiBa.Util.Helper.FileHelper.ReadAllText("data\\config\\dou_user_cookies")?.Trim('\"'); } catch { }
if (GlobalConfig.DouUserCookies == null)
GlobalConfig.DouUserCookies = "";
@@ -43,6 +48,7 @@ namespace TemuKJD
GlobalConfig.dicLocalStorage = NaiBa.Util.Helper.ConfigHelper.LoadConfig<IDictionary<string, object>>("dou_local_Storage");
if (GlobalConfig.dicLocalStorage == null)
GlobalConfig.dicLocalStorage = new Dictionary<string, object>();
#endregion
#region 获取抖音类目
DyCategoryParam.DyCategorys = Properties.Resources.DyCategorys;
@@ -455,5 +461,10 @@ namespace TemuKJD
if (ViolateRuleParam.LstViolateRuleNameSelect != null)
NaiBa.Util.Helper.ConfigHelper.SaveConfig<List<string>>("violate_rule_name_select", ViolateRuleParam.LstViolateRuleNameSelect);
}
public static void SaveProductWords()
{
NaiBa.Util.Helper.ConfigHelper.SaveConfig("product_words", GlobalConfig.ProductWords);
}
}
}