1前端采集数据管理端直传上货 2店铺jit 完成15%

This commit is contained in:
wule committed 2025-11-14 19:19:23 +08:00
1 parent 41a3cb3e34
commit 94f933a5e8
32 files changed
+3768 -466

No files matched your search

+21 -6
View File
@@ -115,27 +115,42 @@ namespace TemuKJD
ReturnPackageDetailForm retrunPackageForm = new ReturnPackageDetailForm(null);
retrunPackageForm.Show();
retrunPackageForm.Hide();
Dictionary<ShopLoginInfo, string> dicUpReturn = new Dictionary<ShopLoginInfo, string>();
Dictionary<string, string> dicGetReturnPackDate = NaiBa.Util.Helper.ConfigHelper.LoadConfig<Dictionary<string, string>>("get_return_package_date");
if (dicGetReturnPackDate == null)
dicGetReturnPackDate = new Dictionary<string, string>();
while (true)
{
#if DEBUG
#else
//#if DEBUG
//#else
var url = BaseClass.BuildObjString("user/is_get_return_package");
var data = Work.UserLogin.GetSignaturex();
int r2 = DateTime.Now.Millisecond;
data += "&r2=" + r2;
data += "&c2=" + Work.UserLogin.Encryption(r2);
string rstHtml = GetHtml.PostUtf8(url, data);
var isGet = BaseRegex.GetStringJson(ref rstHtml, "is_get").ParseToBool();
foreach (var shop in GlobalConfig.ShopLoginList)
{
if (!isGet)
break;
if (string.IsNullOrEmpty(shop.ShopId))
continue;
if (dicUpReturn.Keys.Contains(shop) && dicUpReturn[shop] == DateTime.Now.ToString("yyyyMMdd")) //今日已获取过
if (dicGetReturnPackDate.Keys.Contains(shop.ShopId) && dicGetReturnPackDate[shop.ShopId] == DateTime.Now.ToString("yyyyMMdd")) //今日已获取过
continue;
var rst = retrunPackageForm.GetReturnPackage(shop, true); // 后台读取退货信息
if (rst == false && shop.LoginStatus == "登录成功" && shop.LoginStatus2 == "国际版在线")
{
dicUpReturn[shop] = DateTime.Now.ToString("yyyyMMdd");
dicGetReturnPackDate[shop.ShopId] = DateTime.Now.ToString("yyyyMMdd");
NaiBa.Util.Helper.ConfigHelper.SaveConfig<Dictionary<string, string>>("get_return_package_date", dicGetReturnPackDate);
}
}
#endif
//#endif
#if DEBUG
for (int i = 0; i < 360; i++)
{