超级店铺管理功能
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)
|
||||
{
|
||||
|
||||
@@ -12,10 +12,10 @@ namespace Work.DouyinApiClass
|
||||
{
|
||||
public Dictionary<string, string> Data = new Dictionary<string, string>();
|
||||
public Dictionary<string, string> JsonData = new Dictionary<string, string>();
|
||||
public DouShopLoginInfo Shop = null;
|
||||
public ShopLoginInfo Shop = null;
|
||||
public string Type, Name;
|
||||
public static string Gate = "https://openapi-fxg.jinritemai.com/";
|
||||
public DouyinApi(DouShopLoginInfo shop)
|
||||
public DouyinApi(ShopLoginInfo shop)
|
||||
{
|
||||
Shop = shop;
|
||||
}
|
||||
|
||||
+17
-12
@@ -1,9 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\packages\CefSharp.WinForms.79.1.360\build\CefSharp.WinForms.props" Condition="Exists('..\packages\CefSharp.WinForms.79.1.360\build\CefSharp.WinForms.props')" />
|
||||
<Import Project="..\packages\CefSharp.Common.79.1.360\build\CefSharp.Common.props" Condition="Exists('..\packages\CefSharp.Common.79.1.360\build\CefSharp.Common.props')" />
|
||||
<Import Project="..\packages\cef.redist.x86.79.1.36\build\cef.redist.x86.props" Condition="Exists('..\packages\cef.redist.x86.79.1.36\build\cef.redist.x86.props')" />
|
||||
<Import Project="..\packages\cef.redist.x64.79.1.36\build\cef.redist.x64.props" Condition="Exists('..\packages\cef.redist.x64.79.1.36\build\cef.redist.x64.props')" />
|
||||
<Import Project="..\packages\CefSharp.Common.92.0.260\build\CefSharp.Common.props" Condition="Exists('..\packages\CefSharp.Common.92.0.260\build\CefSharp.Common.props')" />
|
||||
<Import Project="..\packages\cef.redist.x86.92.0.26\build\cef.redist.x86.props" Condition="Exists('..\packages\cef.redist.x86.92.0.26\build\cef.redist.x86.props')" />
|
||||
<Import Project="..\packages\cef.redist.x64.92.0.26\build\cef.redist.x64.props" Condition="Exists('..\packages\cef.redist.x64.92.0.26\build\cef.redist.x64.props')" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
@@ -76,6 +75,15 @@
|
||||
<Reference Include="AdvancedStringBuilder, Version=0.1.0.0, Culture=neutral, PublicKeyToken=e818a2fc08933ddb, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\AdvancedStringBuilder.0.1.0\lib\net45\AdvancedStringBuilder.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CefSharp, Version=92.0.260.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CefSharp.Common.92.0.260\lib\net452\CefSharp.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CefSharp.Core, Version=92.0.260.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CefSharp.Common.92.0.260\lib\net452\CefSharp.Core.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="CefSharp.WinForms, Version=92.0.260.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\CefSharp.WinForms.92.0.260\lib\net452\CefSharp.WinForms.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ClearScript, Version=5.5.5.0, Culture=neutral, PublicKeyToken=935d0c957da47c73, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\JavaScriptEngineSwitcher.V8.3.0.5\lib\net45\ClearScript.dll</HintPath>
|
||||
</Reference>
|
||||
@@ -229,15 +237,12 @@
|
||||
<PropertyGroup>
|
||||
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\packages\cef.redist.x64.79.1.36\build\cef.redist.x64.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\cef.redist.x64.79.1.36\build\cef.redist.x64.props'))" />
|
||||
<Error Condition="!Exists('..\packages\cef.redist.x86.79.1.36\build\cef.redist.x86.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\cef.redist.x86.79.1.36\build\cef.redist.x86.props'))" />
|
||||
<Error Condition="!Exists('..\packages\CefSharp.Common.79.1.360\build\CefSharp.Common.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.Common.79.1.360\build\CefSharp.Common.props'))" />
|
||||
<Error Condition="!Exists('..\packages\CefSharp.Common.79.1.360\build\CefSharp.Common.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.Common.79.1.360\build\CefSharp.Common.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\CefSharp.WinForms.79.1.360\build\CefSharp.WinForms.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.WinForms.79.1.360\build\CefSharp.WinForms.props'))" />
|
||||
<Error Condition="!Exists('..\packages\CefSharp.WinForms.79.1.360\build\CefSharp.WinForms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.WinForms.79.1.360\build\CefSharp.WinForms.targets'))" />
|
||||
<Error Condition="!Exists('..\packages\cef.redist.x64.92.0.26\build\cef.redist.x64.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\cef.redist.x64.92.0.26\build\cef.redist.x64.props'))" />
|
||||
<Error Condition="!Exists('..\packages\cef.redist.x86.92.0.26\build\cef.redist.x86.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\cef.redist.x86.92.0.26\build\cef.redist.x86.props'))" />
|
||||
<Error Condition="!Exists('..\packages\CefSharp.Common.92.0.260\build\CefSharp.Common.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.Common.92.0.260\build\CefSharp.Common.props'))" />
|
||||
<Error Condition="!Exists('..\packages\CefSharp.Common.92.0.260\build\CefSharp.Common.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\CefSharp.Common.92.0.260\build\CefSharp.Common.targets'))" />
|
||||
</Target>
|
||||
<Import Project="..\packages\CefSharp.Common.79.1.360\build\CefSharp.Common.targets" Condition="Exists('..\packages\CefSharp.Common.79.1.360\build\CefSharp.Common.targets')" />
|
||||
<Import Project="..\packages\CefSharp.WinForms.79.1.360\build\CefSharp.WinForms.targets" Condition="Exists('..\packages\CefSharp.WinForms.79.1.360\build\CefSharp.WinForms.targets')" />
|
||||
<Import Project="..\packages\CefSharp.Common.92.0.260\build\CefSharp.Common.targets" Condition="Exists('..\packages\CefSharp.Common.92.0.260\build\CefSharp.Common.targets')" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="AdvancedStringBuilder" version="0.1.0" targetFramework="net452" />
|
||||
<package id="cef.redist.x64" version="79.1.36" targetFramework="net452" />
|
||||
<package id="cef.redist.x86" version="79.1.36" targetFramework="net452" />
|
||||
<package id="CefSharp.Common" version="79.1.360" targetFramework="net452" />
|
||||
<package id="CefSharp.WinForms" version="79.1.360" targetFramework="net452" />
|
||||
<package id="cef.redist.x64" version="92.0.26" targetFramework="net452" />
|
||||
<package id="cef.redist.x86" version="92.0.26" targetFramework="net452" />
|
||||
<package id="CefSharp.Common" version="92.0.260" targetFramework="net452" />
|
||||
<package id="CefSharp.WinForms" version="92.0.260" targetFramework="net452" />
|
||||
<package id="JavaScriptEngineSwitcher.Core" version="3.0.0" targetFramework="net452" />
|
||||
<package id="JavaScriptEngineSwitcher.V8" version="3.0.5" targetFramework="net452" />
|
||||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" />
|
||||
|
||||
Reference in new issue
Block a user