using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AllBase.Model.DBModel; namespace Work._29Tools.BLL { public static class WxSimOrderSupplierBLL { public static string GetWxSupplierList(ShopLoginInfo shop) { string url = "https://store.weixin.qq.com/shop-faas/mmecnodesuppliercosignment/supplier/cgi/getSupplierList?token=&lang=zh_CN"; string referer = "https://store.weixin.qq.com/shop/supply/consignmentOrderList"; string body = @"{""page"":1,""pageSize"":10,""currentTab"":1}"; var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, referer); return result; } public static string GetWxSupplierListV2(ShopLoginInfo shop, int offset = 0) { string url = "https://store.weixin.qq.com/shop-faas/mmecnodesuppliercosignment/distribute/cgi/getDistributeSupplierList?token=&lang=zh_CN"; string referer = "https://store.weixin.qq.com/shop/supply/consignmentOrderList"; string body = @"{""limit"":20,""offset"":" + offset + "}"; var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, referer); return result; } public static string GetWxSupplierOrderList(ShopLoginInfo shop, string orderId) { string url = "https://store.weixin.qq.com/shop-faas/mmecnodesuppliercosignment/order/cgi/orderSearch?token=&lang=zh_CN"; string referer = "https://store.weixin.qq.com/shop/supply/consignmentOrderList"; string body = @"{""pageSize"":30,""page"":1,""beginTime"":"""",""endTime"":"""",""createBeginTime"":"""", ""createEndTime"":"""",""orderId"":""" + orderId + @""",""consignmentOrderId"":"""",""waybillId"":"""",""supplierName"":"""",""productCode"":"""", ""spuName"":"""",""note"":"""",""tab"":1}"; var result = HttpResponseWXBLL.WeiXinPostResponse(shop, url, body, referer); return result; } } }