1修复sku有特殊字符被截断的bug 2优化店铺进店/登录逻辑

This commit is contained in:
wule committed 2025-12-23 10:50:33 +08:00
1 parent 91b1ea7dbc
commit 358bb5490e
21 files changed
+304 -171

No files matched your search

+18 -6
View File
@@ -22,6 +22,7 @@ using Work;
using Work.DouyinApiClass;
using AllBase.Model.Param.TemuProductManage;
using TemuKJD.KJDForms.ShopForms;
using TemuKJD.KJDForms.AdminForms;
namespace TemuKJD
{
@@ -84,7 +85,7 @@ namespace TemuKJD
while (!BaseClass.IsLoginSuccess)
Thread.Sleep(200);
KJDForms.ShopForms.ShopListForm.UpdateShop();
ShopListForm.UpdateShop();
IsShopInit = true;
}));
#endregion
@@ -126,8 +127,10 @@ namespace TemuKJD
while (true)
{
#if DEBUG
#else
//Thread.Sleep(20000);
//#if DEBUG
//#else
var url = BaseClass.BuildObjString("user/is_get_return_package");
var data = Work.UserLogin.GetSignaturex();
@@ -135,18 +138,23 @@ namespace TemuKJD
data += "&r2=" + r2;
data += "&c2=" + Work.UserLogin.Encryption(r2);
string rstHtml = GetHtml.PostUtf8(url, data);
var isGet = BaseRegex.GetStringJson(ref rstHtml, "is_get").ParseToBool();
var isGet = BaseRegex.GetStringJson(ref rstHtml, "is_get") != "false";
foreach (var shop in GlobalConfig.ShopLoginList)
//foreach (var shop in AdminShopListForm.lstAdminShopInfo)
{
if (!isGet)
break;
//var index = AdminShopListForm.lstAdminShopInfo.IndexOf(shop);
if (string.IsNullOrEmpty(shop.ShopId))
continue;
if (dicGetReturnPackDate.Keys.Contains(shop.ShopId) && dicGetReturnPackDate[shop.ShopId] == DateTime.Now.ToString("yyyyMMdd")) //今日已获取过
if (dicGetReturnPackDate.Keys.Contains(shop.ShopId) && dicGetReturnPackDate[shop.ShopId] == DateTime.Now.ToString("yyyyMMdd")) //今日已获取过,则只读今日
{
//retrunPackageForm.GetReturnPackage(shop, true, DateTime.Now.Date, DateTime.Now.Date.AddDays(1)); // 后台读取今日退货信息
continue;
}
try
{
@@ -161,11 +169,15 @@ namespace TemuKJD
{
}
}
#endif
//#endif
for (int i = 0; i < 360; i++)
{
Thread.Sleep(10000);
}
for (int i = 0; i < 180; i++)
{
Thread.Sleep(10000);
}
}
});
#endregion