调整备货逻辑不允许品质分过低的商品自动备货(完成但尚未测试) 注释无用的相关接口(原小奶狗,小奶兔)
This commit is contained in:
1 parent
fceead357f
commit
8445ec1828
19 files changed
+865
-540
No files matched your search
+64
-61
@@ -32,6 +32,7 @@ namespace Work
|
||||
|
||||
public static void InitProgress(int i)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(10, 100));
|
||||
InitPercent += i;
|
||||
if (InitPercent > 100)
|
||||
InitPercent = 100;
|
||||
@@ -91,22 +92,22 @@ offCountPara,false;offProductPara,100;IrregularitiesPara,true;noNeerPara,true;no
|
||||
Directory.Delete(System.Environment.CurrentDirectory + "\\data1", true);
|
||||
});
|
||||
//Task.Run(() => { Update(); InitProgress(1); });
|
||||
Task.Run(() => { CheckUpdate(); InitProgress(1); });
|
||||
Task.Run(() => { CheckUpdate(); InitProgress(2); });
|
||||
Task.Run(() => { GetAuthConfig(); InitProgress(1); });
|
||||
Task.Run(() => { CheckFiles(); IsCheckFilesFinish = true; InitProgress(1); });
|
||||
Task.Run(() => { CheckFiles(); IsCheckFilesFinish = true; InitProgress(2); });
|
||||
//Task.Run(() => { CheckUpdataFile(); });
|
||||
Task.Run(() => { new Segment().GetWord(); InitProgress(1); });
|
||||
//Task.Run(() => { new PinduoduoCatList().Get(); InitProgress(1); }); // pdd cat
|
||||
Task.Run(() => { GetMacCode(); InitProgress(1); });
|
||||
#if DEBUG
|
||||
if (!File.Exists(System.Environment.CurrentDirectory + "\\TemuKJD.exe.choice.debug.tools"))
|
||||
Task.Run(() => { new CheckHecker().Check(); InitProgress(1); }); // 防止破解
|
||||
Task.Run(() => { new CheckHecker().Check(); InitProgress(2); }); // 防止破解
|
||||
#else
|
||||
Task.Run(() => { new CheckHecker().Check(); InitProgress(1); }); // 防止破解
|
||||
Task.Run(() => { new CheckHecker().Check(); InitProgress(2); }); // 防止破解
|
||||
#endif
|
||||
Task.Run(() => { PinduoduoProductCollect.GetServerCookies(); InitProgress(1); });
|
||||
Task.Run(() => { new LoadCloudData().Get(); InitProgress(1); }); // 加载云数据
|
||||
Task.Run(() => { new BigDataBuild("").Ini(); InitProgress(1); }); // 加载云数据
|
||||
Task.Run(() => { PinduoduoProductCollect.GetServerCookies(); InitProgress(2); });
|
||||
Task.Run(() => { new LoadCloudData().Get(); InitProgress(2); }); // 加载云数据
|
||||
Task.Run(() => { new BigDataBuild("").Ini(); InitProgress(2); }); // 加载云数据
|
||||
new FromTitleToCat();
|
||||
InitProgress(1);
|
||||
|
||||
@@ -288,26 +289,26 @@ offCountPara,false;offProductPara,100;IrregularitiesPara,true;noNeerPara,true;no
|
||||
/// </summary>
|
||||
private void Update()
|
||||
{
|
||||
string upfilepath = Application.StartupPath + "\\Updatex.exe";
|
||||
File.WriteAllText(Application.StartupPath + "\\updateconfig.ini", BaseClass.VersionCount
|
||||
+ "\r\nhttps://update.qixiaoke.com/littlerabbit_update/uploader.php");
|
||||
if (File.Exists(upfilepath))
|
||||
{
|
||||
string fc = GetMD5(upfilepath);
|
||||
if (fc != "001EC5642914325F1DCF6E69BBA90738")
|
||||
{
|
||||
GetHtml.DownloadFile("http://dl.qixiaoke.com/Update3.1.exe", upfilepath);
|
||||
}
|
||||
}
|
||||
else//如果自动更新文件不存在,则强制更新主文件
|
||||
GetHtml.DownloadFile("http://dl.qixiaoke.com/Update3.1.exe", upfilepath);
|
||||
try
|
||||
{
|
||||
Process.Start(upfilepath);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
//string upfilepath = Application.StartupPath + "\\Updatex.exe";
|
||||
//File.WriteAllText(Application.StartupPath + "\\updateconfig.ini", BaseClass.VersionCount
|
||||
//+ "\r\nhttps://update.qixiaoke.com/littlerabbit_update/uploader.php");
|
||||
//if (File.Exists(upfilepath))
|
||||
//{
|
||||
// string fc = GetMD5(upfilepath);
|
||||
// if (fc != "001EC5642914325F1DCF6E69BBA90738")
|
||||
// {
|
||||
// GetHtml.DownloadFile("http://dl.qixiaoke.com/Update3.1.exe", upfilepath);
|
||||
// }
|
||||
//}
|
||||
//else//如果自动更新文件不存在,则强制更新主文件
|
||||
// GetHtml.DownloadFile("http://dl.qixiaoke.com/Update3.1.exe", upfilepath);
|
||||
//try
|
||||
//{
|
||||
// Process.Start(upfilepath);
|
||||
//}
|
||||
//catch
|
||||
//{
|
||||
//}
|
||||
|
||||
InitProgress(1);
|
||||
}
|
||||
@@ -679,12 +680,14 @@ offCountPara,false;offProductPara,100;IrregularitiesPara,true;noNeerPara,true;no
|
||||
Directory.CreateDirectory("x64");
|
||||
if (!Directory.Exists("x86"))
|
||||
Directory.CreateDirectory("x86");
|
||||
if (!Directory.Exists("ru-ru"))
|
||||
Directory.CreateDirectory("ru-ru");
|
||||
//if (!Directory.Exists("ru-ru"))
|
||||
// Directory.CreateDirectory("ru-ru");
|
||||
if (!Directory.Exists("temp"))
|
||||
Directory.CreateDirectory("temp");
|
||||
if (!Directory.Exists("temp/image"))
|
||||
Directory.CreateDirectory("temp/image");
|
||||
//if (!Directory.Exists("temp/image"))
|
||||
// Directory.CreateDirectory("temp/image");
|
||||
|
||||
/*
|
||||
List<KeyValueBase> files = new List<KeyValueBase>();
|
||||
files.Add(new KeyValueBase("标题包含过滤_new.txt", "config/标题包含过滤x.ini"));
|
||||
files.Add(new KeyValueBase("标题过滤词_new.txt", "config/标题过滤词x.ini"));
|
||||
@@ -804,7 +807,7 @@ offCountPara,false;offProductPara,100;IrregularitiesPara,true;noNeerPara,true;no
|
||||
else
|
||||
{
|
||||
InitProgress(20);
|
||||
}
|
||||
}*/
|
||||
Task.Run(() => { new AddressSetIni().Ini(); InitProgress(1); });
|
||||
Task.Run(() => { new AddressSetIni().getAddress1688(); InitProgress(1); });
|
||||
Task.Run(() => { FromTitleToCat.Ini(); InitProgress(1); });
|
||||
@@ -815,32 +818,32 @@ offCountPara,false;offProductPara,100;IrregularitiesPara,true;noNeerPara,true;no
|
||||
|
||||
try
|
||||
{
|
||||
//加载违规商品Id
|
||||
string idslines = File.ReadAllText("temp/ids.dll", Encoding.Default);
|
||||
if (!string.IsNullOrEmpty(idslines))
|
||||
{
|
||||
foreach (string s in idslines.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
|
||||
{
|
||||
if (string.IsNullOrEmpty(s) || s == "0" || s.Contains("?") || s.Contains("@"))
|
||||
continue;
|
||||
if (s.Trim().Length < 2)
|
||||
continue;
|
||||
UploadPinduoduoMain.RuleIds.Add(s);
|
||||
}
|
||||
}
|
||||
//加载违规商品标题
|
||||
string tidslines = File.ReadAllText("temp/tids.dll", Encoding.Default);
|
||||
if (!string.IsNullOrEmpty(tidslines))
|
||||
{
|
||||
foreach (string s in tidslines.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
|
||||
{
|
||||
if (string.IsNullOrEmpty(s) || s == "0")
|
||||
continue;
|
||||
if (s.Trim().Length < 2)
|
||||
continue;
|
||||
UploadPinduoduoMain.RuleTitles.Add(s);
|
||||
}
|
||||
}
|
||||
////加载违规商品Id
|
||||
//string idslines = File.ReadAllText("temp/ids.dll", Encoding.Default);
|
||||
//if (!string.IsNullOrEmpty(idslines))
|
||||
//{
|
||||
// foreach (string s in idslines.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
|
||||
// {
|
||||
// if (string.IsNullOrEmpty(s) || s == "0" || s.Contains("?") || s.Contains("@"))
|
||||
// continue;
|
||||
// if (s.Trim().Length < 2)
|
||||
// continue;
|
||||
// UploadPinduoduoMain.RuleIds.Add(s);
|
||||
// }
|
||||
//}
|
||||
////加载违规商品标题
|
||||
//string tidslines = File.ReadAllText("temp/tids.dll", Encoding.Default);
|
||||
//if (!string.IsNullOrEmpty(tidslines))
|
||||
//{
|
||||
// foreach (string s in tidslines.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries))
|
||||
// {
|
||||
// if (string.IsNullOrEmpty(s) || s == "0")
|
||||
// continue;
|
||||
// if (s.Trim().Length < 2)
|
||||
// continue;
|
||||
// UploadPinduoduoMain.RuleTitles.Add(s);
|
||||
// }
|
||||
//}
|
||||
|
||||
InitProgress(1);
|
||||
}
|
||||
@@ -865,7 +868,7 @@ offCountPara,false;offProductPara,100;IrregularitiesPara,true;noNeerPara,true;no
|
||||
// AlibabaShop.NoTitleWords.Add(s.Trim());
|
||||
// }
|
||||
//
|
||||
// InitProgress(1);
|
||||
InitProgress(1);
|
||||
//}
|
||||
|
||||
//lines = File.ReadAllText("config/属性过滤词x.ini", Encoding.Default);
|
||||
@@ -882,7 +885,7 @@ offCountPara,false;offProductPara,100;IrregularitiesPara,true;noNeerPara,true;no
|
||||
//AlibabaShop.NoPropWords.Add(s.Trim());
|
||||
//}
|
||||
|
||||
//InitProgress(1);
|
||||
InitProgress(1);
|
||||
//}
|
||||
//lines = File.ReadAllText("config/品牌属性过滤x.ini", Encoding.Default);
|
||||
//if (!string.IsNullOrEmpty(lines))
|
||||
@@ -898,7 +901,7 @@ offCountPara,false;offProductPara,100;IrregularitiesPara,true;noNeerPara,true;no
|
||||
//AlibabaShop.NoBrandName.Add(s.Trim());
|
||||
//}
|
||||
|
||||
//InitProgress(1);
|
||||
InitProgress(1);
|
||||
//}
|
||||
//lines = File.ReadAllText("config/标题包含过滤x.ini", Encoding.Default);
|
||||
//if (!string.IsNullOrEmpty(lines))
|
||||
|
||||
Reference in new issue
Block a user