1店铺登录逻辑优化 2备货单查询显示
This commit is contained in:
1 parent
89eb9ce9d4
commit
862ad088f5
216 files changed
+3481
-1543
No files matched your search
@@ -457,7 +457,7 @@ namespace Work.BLL.Upload
|
||||
title = title.Replace(delStr, "");
|
||||
}
|
||||
|
||||
var cookieShops = GlobalConfig.DouShopLoginList.Where(s => s.LoginStatus == "登录成功" && s.ShopAccountId == dShop.ShopAccountId).ToList();
|
||||
var cookieShops = GlobalConfig.ShopLoginList.Where(s => s.LoginStatus == "登录成功" && s.ShopId == dShop.ShopId).ToList();
|
||||
if (cookieShops.Count == 0)
|
||||
{
|
||||
msg = "店铺未登录";
|
||||
@@ -1007,7 +1007,7 @@ namespace Work.BLL.Upload
|
||||
|
||||
var apiGetOutIdExist = new DouyinApi(Shop);
|
||||
// 老上货数据判断是否重复铺货
|
||||
var shopItems = GlobalConfig.SameProductCheckParamList.Find(sit => sit.ShopId == Shop.ShopAccountId);
|
||||
var shopItems = GlobalConfig.SameProductCheckParamList.Find(sit => sit.ShopId == Shop.ShopId);
|
||||
var productIdExist = shopItems?.ShopSamePrpductItemList.Find(it => it.outer_product_id.Contains(p.from_id.ToString()));
|
||||
if (productIdExist != null)
|
||||
apiGetOutIdExist.JsonData.Add("product_id", productIdExist.product_id.ToString());
|
||||
@@ -2243,8 +2243,8 @@ namespace Work.BLL.Upload
|
||||
{
|
||||
Shop.TrialUploadCount++;
|
||||
NaiBa.Util.ConcurrentList<DouShopLoginInfo> shopLoginListCopy =
|
||||
JsonHelper.DeserializeJsonToObject<NaiBa.Util.ConcurrentList<DouShopLoginInfo>>(JsonHelper.SerializeObject(GlobalConfig.DouShopLoginList));
|
||||
shopLoginListCopy.AddRange(GlobalConfig.DouShopLoginOtherAccountList);
|
||||
JsonHelper.DeserializeJsonToObject<NaiBa.Util.ConcurrentList<DouShopLoginInfo>>(JsonHelper.SerializeObject(GlobalConfig.ShopLoginList));
|
||||
shopLoginListCopy.AddRange(GlobalConfig.DouShopLoginOtherUserShopList);
|
||||
// 替换掉密码,cookie等敏感参数
|
||||
foreach (var shop in shopLoginListCopy)
|
||||
{
|
||||
@@ -2267,7 +2267,7 @@ namespace Work.BLL.Upload
|
||||
string url = BaseClass.LoginApiUrl + "?obj=douyin/upload&act=add_upload_log";
|
||||
string data = "&product_id=" + t.FromId + "&source_id=" + GetPrev(t.FromType).Trim('-')
|
||||
+ "&cat_id=" + catId + "&message=" + HttpUtility.UrlEncode((message + "^" + sub_msg).Trim('^'), Encoding.UTF8);
|
||||
string param = UserLogin.GetSignaturex(Shop.ShopAccountId, Shop.ShopAccount) + data;
|
||||
string param = UserLogin.GetSignaturex(Shop.ShopId, Shop.ShopAccount) + data;
|
||||
string result = GetHtml.PostUtf8(url, param);
|
||||
}
|
||||
|
||||
@@ -2338,7 +2338,7 @@ namespace Work.BLL.Upload
|
||||
{
|
||||
string urlx = BaseClass.LoginApiUrl + "?obj=upshopid/upid_dd&act=get";
|
||||
string datax = "&pid=" + product_id + "&table=" + (product_id % 1024);
|
||||
string htmlx = GetHtml.PostUtf8(urlx, UserLogin.GetSignaturex(Shop.ShopAccountId, Shop.ShopAccount) + datax);
|
||||
string htmlx = GetHtml.PostUtf8(urlx, UserLogin.GetSignaturex(Shop.ShopId, Shop.ShopAccount) + datax);
|
||||
if (!string.IsNullOrEmpty(htmlx))
|
||||
return true;
|
||||
else
|
||||
@@ -2354,17 +2354,17 @@ namespace Work.BLL.Upload
|
||||
}
|
||||
string url = BaseClass.LoginApiUrl + "?obj=upshopid/upid_dd&act=insert";
|
||||
string data = "&pid=" + pid + "&up_id=" + upProductId + "&table=" + (pid % 1024) + "&up_table=" + (up_table % 1024);
|
||||
string param = UserLogin.GetSignaturex(Shop.ShopAccountId, Shop.ShopAccount) + data;
|
||||
string param = UserLogin.GetSignaturex(Shop.ShopId, Shop.ShopAccount) + data;
|
||||
string html = GetHtml.PostUtf8(url, param);
|
||||
if (html != "ok")
|
||||
{
|
||||
Thread.Sleep(15 * 1000);
|
||||
html = GetHtml.PostUtf8(url, UserLogin.GetSignaturex(Shop.ShopAccountId, Shop.ShopAccount) + data);
|
||||
html = GetHtml.PostUtf8(url, UserLogin.GetSignaturex(Shop.ShopId, Shop.ShopAccount) + data);
|
||||
}
|
||||
if (html != "ok")
|
||||
{
|
||||
Thread.Sleep(15 * 1000);
|
||||
html = GetHtml.PostUtf8(url, UserLogin.GetSignaturex(Shop.ShopAccountId, Shop.ShopAccount) + data);
|
||||
html = GetHtml.PostUtf8(url, UserLogin.GetSignaturex(Shop.ShopId, Shop.ShopAccount) + data);
|
||||
}
|
||||
if (html != "ok")
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user