超级店铺管理功能
This commit is contained in:
1 parent
d3e404ac2a
commit
fe2d2883db
91 files changed
+4295
-587
No files matched your search
@@ -19,7 +19,7 @@ namespace Work.BLL.Product
|
||||
/// <param name="pageSize">每页商品数量</param>
|
||||
/// <param name="update_end_time">最后更新时间</param>
|
||||
/// <returns></returns>
|
||||
public string GetShopProductListData(DouShopLoginInfo shop, int productStatus = 0, int page = 1, int pageSize = 50, long update_end_time = 0)
|
||||
public string GetShopProductListData(ShopLoginInfo shop, int productStatus = 0, int page = 1, int pageSize = 50, long update_end_time = 0)
|
||||
{
|
||||
// 读取在售商品数量
|
||||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
@@ -39,7 +39,7 @@ namespace Work.BLL.Product
|
||||
return resultOnline;
|
||||
}
|
||||
|
||||
public string OnSaleProduct(DouShopLoginInfo shop, string productIds)
|
||||
public string OnSaleProduct(ShopLoginInfo shop, string productIds)
|
||||
{
|
||||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
dictionary.Add("product_id", productIds);
|
||||
@@ -51,7 +51,7 @@ namespace Work.BLL.Product
|
||||
return resultOnline;
|
||||
}
|
||||
|
||||
public string OffSaleProduct(DouShopLoginInfo shop, string productIds)
|
||||
public string OffSaleProduct(ShopLoginInfo shop, string productIds)
|
||||
{
|
||||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
dictionary.Add("product_id", productIds);
|
||||
@@ -61,7 +61,7 @@ namespace Work.BLL.Product
|
||||
return resultOnline;
|
||||
}
|
||||
|
||||
public string DeleteProduct(DouShopLoginInfo shop, string productIds)
|
||||
public string DeleteProduct(ShopLoginInfo shop, string productIds)
|
||||
{
|
||||
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
||||
dictionary.Add("product_id", productIds);
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Work.BLL.Upload
|
||||
{
|
||||
public class UploadMaterialBLL
|
||||
{
|
||||
public bool DelOldestApiMaterialFolder(AllBase.Model.Result.DouShopLoginInfo shop)
|
||||
public bool DelOldestApiMaterialFolder(AllBase.Model.Result.ShopLoginInfo shop)
|
||||
{
|
||||
///^(\d{4})-(\d{2})-(\d{2})/
|
||||
var folder = GetApiMaterialFolder(shop);
|
||||
@@ -47,7 +47,7 @@ namespace Work.BLL.Upload
|
||||
/// <param name="page_num">分页的页数,从1开始</param>
|
||||
/// <param name="order_by">排序方式 0-创建时间倒序 1-创建时间正序 2-修改时间倒序 3-修改时间正序 4-文件夹名倒序 5-文件夹名正序</param>
|
||||
/// <returns></returns>
|
||||
public string GetApiMaterialFolder(AllBase.Model.Result.DouShopLoginInfo shop, string parent_folder_id = "0", int page_size = 10, int page_num = 1, int order_by = 1,
|
||||
public string GetApiMaterialFolder(AllBase.Model.Result.ShopLoginInfo shop, string parent_folder_id = "0", int page_size = 10, int page_num = 1, int order_by = 1,
|
||||
string create_time_start = "", string create_time_end = "")
|
||||
{
|
||||
//var api = new DouyinApiClass.DouyinApi(shop);
|
||||
@@ -71,7 +71,7 @@ namespace Work.BLL.Upload
|
||||
return html;
|
||||
}
|
||||
|
||||
public string GetApiMaterial(AllBase.Model.Result.DouShopLoginInfo shop, string parent_folder_id = "0", int page_size = 10, int page_num = 1, int order_by = 1,
|
||||
public string GetApiMaterial(AllBase.Model.Result.ShopLoginInfo shop, string parent_folder_id = "0", int page_size = 10, int page_num = 1, int order_by = 1,
|
||||
string create_time_start = "", string create_time_end = "")
|
||||
{
|
||||
DouyinApiClass.DouyinApi api = new DouyinApiClass.DouyinApi(shop);
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Work.BLL.Upload
|
||||
/// </summary>
|
||||
public static List<string> ViolationSkuWords = new List<string>() { "灭火器", "保护帽", };
|
||||
public string Name;
|
||||
DouShopLoginInfo Shop;
|
||||
ShopLoginInfo Shop;
|
||||
public static bool isEdit = false;
|
||||
public static int ShopThreadCount = 20;
|
||||
public static bool IsNoToken = false;
|
||||
@@ -63,7 +63,7 @@ namespace Work.BLL.Upload
|
||||
public static List<TaobaoProductBase> ProductTemp = new List<TaobaoProductBase>();
|
||||
public static List<TaobaoProductBase> ProductStock = new List<TaobaoProductBase>();
|
||||
public static List<TaobaoProductBase> ProductStockTemp = new List<TaobaoProductBase>();
|
||||
public static List<DouShopLoginInfo> ShopTemp = new List<DouShopLoginInfo>();
|
||||
public static List<ShopLoginInfo> ShopTemp = new List<ShopLoginInfo>();
|
||||
public static List<string> FilterTitleWordList = new List<string>(); // 过滤标题违规词
|
||||
public static List<string> FilterSkuWordList = new List<string>(); // 过滤sku违规词
|
||||
public static List<string> FilterBrandWordList = new List<string>(); // 过滤品牌违规词
|
||||
@@ -151,7 +151,7 @@ namespace Work.BLL.Upload
|
||||
/// </summary>
|
||||
public static bool IsDelFirstContentPic = false;
|
||||
|
||||
public UploadProductBLL(string Name, DouShopLoginInfo Shop)
|
||||
public UploadProductBLL(string Name, ShopLoginInfo Shop)
|
||||
{
|
||||
this.Name = Name;
|
||||
this.Shop = Shop;
|
||||
@@ -442,7 +442,7 @@ namespace Work.BLL.Upload
|
||||
long tid = BaseRegex.GetLongJson(ref html, "id");
|
||||
}
|
||||
|
||||
public static long GetCat(string title, out string msg, out string fullCatInfo, DouShopLoginInfo dShop)
|
||||
public static long GetCat(string title, out string msg, out string fullCatInfo, ShopLoginInfo dShop)
|
||||
{
|
||||
msg = "";
|
||||
fullCatInfo = "";
|
||||
@@ -2242,8 +2242,8 @@ namespace Work.BLL.Upload
|
||||
if (Shop.PayStatus != 1)
|
||||
{
|
||||
Shop.TrialUploadCount++;
|
||||
NaiBa.Util.ConcurrentList<DouShopLoginInfo> shopLoginListCopy =
|
||||
JsonHelper.DeserializeJsonToObject<NaiBa.Util.ConcurrentList<DouShopLoginInfo>>(JsonHelper.SerializeObject(GlobalConfig.ShopLoginList));
|
||||
NaiBa.Util.ConcurrentList<ShopLoginInfo> shopLoginListCopy =
|
||||
JsonHelper.DeserializeJsonToObject<NaiBa.Util.ConcurrentList<ShopLoginInfo>>(JsonHelper.SerializeObject(GlobalConfig.ShopLoginList));
|
||||
shopLoginListCopy.AddRange(GlobalConfig.DouShopLoginOtherUserShopList);
|
||||
// 替换掉密码,cookie等敏感参数
|
||||
foreach (var shop in shopLoginListCopy)
|
||||
@@ -2394,7 +2394,7 @@ namespace Work.BLL.Upload
|
||||
|
||||
|
||||
|
||||
public static string getProductUpdateRule(string catId, DouShopLoginInfo Shop)
|
||||
public static string getProductUpdateRule(string catId, ShopLoginInfo Shop)
|
||||
{
|
||||
DouyinApi api = new DouyinApi(Shop);
|
||||
api.JsonData = new Dictionary<string, string>();
|
||||
@@ -2403,7 +2403,7 @@ namespace Work.BLL.Upload
|
||||
return updateRule;
|
||||
}
|
||||
|
||||
public static string CreateImageFolder(DouShopLoginInfo shop)
|
||||
public static string CreateImageFolder(ShopLoginInfo shop)
|
||||
{
|
||||
DouyinApi api = new DouyinApi(shop);
|
||||
api.JsonData = new Dictionary<string, string>();
|
||||
@@ -2412,7 +2412,7 @@ namespace Work.BLL.Upload
|
||||
string html = api.GetCreateFolder();
|
||||
return html;
|
||||
}
|
||||
public static string SearchFolder(DouShopLoginInfo shop)
|
||||
public static string SearchFolder(ShopLoginInfo shop)
|
||||
{
|
||||
DouyinApi api = new DouyinApi(shop);
|
||||
api.JsonData = new Dictionary<string, string>();
|
||||
@@ -2425,7 +2425,7 @@ namespace Work.BLL.Upload
|
||||
}
|
||||
|
||||
|
||||
public static string UploadImageSync(DouShopLoginInfo shop, string folder_id, string url, string title)
|
||||
public static string UploadImageSync(ShopLoginInfo shop, string folder_id, string url, string title)
|
||||
{
|
||||
DouyinApi api = new DouyinApi(shop);
|
||||
api.JsonData = new Dictionary<string, string>();
|
||||
@@ -2436,7 +2436,7 @@ namespace Work.BLL.Upload
|
||||
string html = api.GetUploadImageSync();
|
||||
return html;
|
||||
}
|
||||
public static string BatchUploadImageSync(DouShopLoginInfo shop, string materials)
|
||||
public static string BatchUploadImageSync(ShopLoginInfo shop, string materials)
|
||||
{
|
||||
DouyinApi api = new DouyinApi(shop);
|
||||
api.JsonData = new Dictionary<string, string>();
|
||||
@@ -2449,7 +2449,7 @@ namespace Work.BLL.Upload
|
||||
/// <summary>
|
||||
/// 获取品牌Id
|
||||
/// </summary>
|
||||
public static List<BrandInfo> GetBrandList(DouShopLoginInfo shop)
|
||||
public static List<BrandInfo> GetBrandList(ShopLoginInfo shop)
|
||||
{
|
||||
DouyinApi apiBrand = new DouyinApi(shop);
|
||||
string brandHtml = apiBrand.shopBrandList();
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Work.BLL.Upload
|
||||
/// </summary>
|
||||
public static bool IsFuzzyMatching = false;
|
||||
|
||||
public static string getCatePropertyInterface(string c3, DouShopLoginInfo shop, ProductCollectBase pc)
|
||||
public static string getCatePropertyInterface(string c3, ShopLoginInfo shop, ProductCollectBase pc)
|
||||
{
|
||||
//string url = "https://fxg.jinritemai.com/product/tproduct/formatTpl?category_leaf_id=" + c3;
|
||||
//string htmlx = GetPostTaobaoHtml.UploadTaobao(url, "", true, shop.Cookies);
|
||||
@@ -30,7 +30,7 @@ namespace Work.BLL.Upload
|
||||
return result;
|
||||
}
|
||||
|
||||
public CatePropertyResponseInfo getCatePropertyInterfaceV2(string c3, DouShopLoginInfo shop)
|
||||
public CatePropertyResponseInfo getCatePropertyInterfaceV2(string c3, ShopLoginInfo shop)
|
||||
{
|
||||
DouyinApi api = new DouyinApi(shop);
|
||||
api.JsonData = new Dictionary<string, string>();
|
||||
@@ -66,7 +66,7 @@ namespace Work.BLL.Upload
|
||||
/// <param name="shop"></param>
|
||||
/// <param name="pcb"></param>
|
||||
/// <returns></returns>
|
||||
public string GetCatePropertyAnalysis(CatePropertyResponseInfo cateProperyInfo, DouShopLoginInfo shop, ProductCollectBase pcb)
|
||||
public string GetCatePropertyAnalysis(CatePropertyResponseInfo cateProperyInfo, ShopLoginInfo shop, ProductCollectBase pcb)
|
||||
{
|
||||
if (cateProperyInfo?.data?.data == null)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user