商品优化功能,筛选功能优化
This commit is contained in:
1 parent
aeb30c1171
commit
c70fa07d7d
15 files changed
+1600
-68
No files matched your search
+1
-1
@@ -7,7 +7,7 @@ using AllBase.Model.DBModel;
|
||||
|
||||
namespace Work._29Tools.BLL
|
||||
{
|
||||
public static class WxOrderSupplierBLL
|
||||
public static class WxSimOrderSupplierBLL
|
||||
{
|
||||
public static string GetWxSupplierList(ShopLoginInfo shop)
|
||||
{
|
||||
@@ -0,0 +1,109 @@
|
||||
using AllBase;
|
||||
using AllBase.Model.DBModel;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Work._29Tools.BLL
|
||||
{
|
||||
public class WxSimProductBLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取商品列表
|
||||
/// </summary>
|
||||
/// <param name="shop"></param>
|
||||
/// <param name="pageNum"></param>
|
||||
/// <param name="pageSize"></param>
|
||||
/// <param name="prodIds"></param>
|
||||
/// <param name="status"></param>
|
||||
/// <param name="sortType"></param>
|
||||
/// <returns></returns>
|
||||
public static string searchProduct(ShopLoginInfo shop, int pageNum, int pageSize = 50, string prodIds = null, int status = 5, int? sortType = null)
|
||||
{
|
||||
//https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/searchProduct?token=&lang=zh_CN&pageSize=20&productStatus[]=-1&productSource=[1,16,32]&searchSource=1&useNew=true&pageNum=44&status[]=5&presaleType[]=1
|
||||
//https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/searchProduct?token=&lang=zh_CN&pageSize=20&productStatus[]=-1&productSource=[1,16,32]&searchSource=1&useNew=true&pageNum=1&status[]=-1&spuId=1000080961530,10000802736449
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/searchProduct?token=&lang=zh_CN&" +
|
||||
"pageSize=" + pageSize + "&productStatus[]=-1&productSource=[1,16,32]&searchSource=1&useNew=true&pageNum=" + pageNum + "&status[]=" + status;
|
||||
if (prodIds != null)
|
||||
url += "&spuId=" + prodIds;
|
||||
if (sortType != null)
|
||||
url += "&sortType=" + sortType;
|
||||
|
||||
string refere = "https://store.weixin.qq.com/shop/goods/list";
|
||||
var result = HttpResponseWXBLL.WeiXinGetResponse(shop, url, refere);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string getSkuBySpu(ShopLoginInfo shop, string spuIds)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmecnodeproductlist/cgi/goods/getStockBySpu?token=&lang=zh_CN";
|
||||
string body = @"{""productIdList"":[" + spuIds + @"]}";
|
||||
|
||||
string refere = "https://store.weixin.qq.com/shop/goods/list";
|
||||
var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, refere);
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 下架商品
|
||||
/// </summary>
|
||||
/// <param name="shop"></param>
|
||||
/// <param name="prodId"></param>
|
||||
/// <returns></returns>
|
||||
public static string DownProd(ShopLoginInfo shop, string prodIds)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmecnodeproductlist/cgi/goods/BatchUnListing?token=&lang=zh_CN";
|
||||
string referer = "https://store.weixin.qq.com/shop/goods/list";
|
||||
string body = @"{""ids"":[" + prodIds + @"],""uploadSource"":6}";
|
||||
var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, referer);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string batchUpdateStockAdd(ShopLoginInfo shop, string spuId, string skuId, string num)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmecnodeproductlist/cgi/goods/batchUpdateStock?token=&lang=zh_CN";
|
||||
string body = @"{""skuList"":[{""spuId"":""" + spuId + @""",""skuId"":""" + skuId + @""",""diffType"":1,""num"":" + num + "}]}";
|
||||
|
||||
string refere = "https://store.weixin.qq.com/shop/goods/list";
|
||||
var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, refere);
|
||||
return result;
|
||||
}
|
||||
public static string batchUpdateStockReduce(ShopLoginInfo shop, string spuId, string skuId, string num)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmecnodeproductlist/cgi/goods/batchUpdateStock?token=&lang=zh_CN";
|
||||
string body = @"{""skuList"":[{""spuId"":""" + spuId + @""",""skuId"":""" + skuId + @""",""diffType"":2,""num"":" + num + "}]}";
|
||||
|
||||
string refere = "https://store.weixin.qq.com/shop/goods/list";
|
||||
var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, refere);
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑商品价格
|
||||
/// </summary>
|
||||
/// <param name="shop"></param>
|
||||
/// <param name="priceData">@"{""skuList"":[{""spuId"":" + spuId + @",""skuId"":""" + skuId + @""",""salePrice"":" + newPrice + @"}],""uploadSource"":6}";</param>
|
||||
/// <returns></returns>
|
||||
public static string EditPrice(ShopLoginInfo shop, JObject priceData)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmecnodeproductlist/cgi/goods/listingUpdatePrice?token=&lang=zh_CN";
|
||||
//string body = @"{""skuList"":[{""spuId"":" + spuId + @",""skuId"":""" + skuId + @""",""salePrice"":" + newPrice + @"}],""uploadSource"":6}";
|
||||
string body = JsonHelper.SerializeObject(priceData);
|
||||
string refere = "https://store.weixin.qq.com/shop/goods/list";
|
||||
var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, refere);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string cancelActivity(ShopLoginInfo shop, JObject activityData)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmeckolmarketingnode/activity/cgi/updateRequestProductList?token=&lang=zh_CN";
|
||||
string body = JsonHelper.SerializeObject(activityData);
|
||||
string refere = "https://store.weixin.qq.com/shop/marketingkol/activity/detail?id=1016&curTab=2";
|
||||
var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, refere);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user