拼多多买手订单抓取推送

This commit is contained in:
wule committed 2026-04-10 16:00:24 +08:00
1 parent fa96cc1444
commit caeea6e0c3
18 files changed
+1703 -215

No files matched your search

+2
View File
@@ -210,11 +210,13 @@
<Compile Include="Model\Param\WXParam\WXCoupon.cs" />
<Compile Include="Model\Result\1688\_1688ClientProductInfo.cs" />
<Compile Include="Model\Result\1688\_1688OneProductListInfo.cs" />
<Compile Include="Model\Result\BuyerLoginInfo.cs" />
<Compile Include="Model\Result\JST\JSTOrderInfo.cs" />
<Compile Include="Model\Result\JST\JSTListProductSkuInfo.cs" />
<Compile Include="Model\Result\PDDResult\ApiPddGoodsCatRuleInfo.cs" />
<Compile Include="Model\Result\PDDResult\PDDActivityResult\ActivityListProdInfo.cs" />
<Compile Include="Model\Result\PDDResult\PDDActivityResult\ActEnrollV3GoodsRuleInfo.cs" />
<Compile Include="Model\Result\PDDResult\PddBuyerOrderInfoLite.cs" />
<Compile Include="Model\Result\WXResult\WXAddressInfo.cs" />
<Compile Include="Model\Result\WXResult\WXClientProductInfoLite.cs" />
<Compile Include="Model\Result\WXResult\WXFinderTalentInfo.cs" />
+1 -1
View File
@@ -27,7 +27,7 @@ namespace AllBase
/// <summary>
/// 版本ID
/// </summary>
public static int VersionCount = 963;
public static int VersionCount = 967;
//public static int VersionCount = 613;
/// <summary>
+7 -7
View File
@@ -1186,7 +1186,7 @@ Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
request.ReadWriteTimeout = BaseClass.TimeOut * 1000;
request.Proxy = null;
request.ContentType = "application/x-www-form-urlencoded; charset=" + codeType;
if(BaseClass.SaLevel > 0)
//if(BaseClass.SaLevel > 0)
{
//260306 采用GZip/deflate压缩
//request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate, br, zstd");
@@ -1215,14 +1215,14 @@ Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom
Stream receiveStream = response.GetResponseStream();
StreamReader readStream = new StreamReader(receiveStream, Encoding.GetEncoding(codeType));
if (BaseClass.SaLevel == 0)
{
return readStream.ReadToEnd().Trim();
}
else
//if (BaseClass.SaLevel == 0)
//{
// return readStream.ReadToEnd().Trim();
//}
//else
{
//260306 超管采用GZip/deflate压缩
Thread.Sleep(50);
//Thread.Sleep(50);
return GetProxyHtml.ReadResponse(response);
}
}
+1
View File
@@ -19,6 +19,7 @@ namespace AllBase.Helper
/// 店铺列表
/// </summary>
public static ConcurrentList<ShopLoginInfo> ShopLoginList { get; set; } = new ConcurrentList<ShopLoginInfo>();
public static ConcurrentList<BuyerLoginInfo> BuyerLoginList { get; set; } = new ConcurrentList<BuyerLoginInfo>();
/// <summary>
/// 微店店铺列表
/// </summary>
+22
View File
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Result
{
public class BuyerLoginInfo
{
public int id { get; set; }
public string user_name { get; set; }
public string buyer_id { get; set; }
public string buyer_name { get; set; }
public string buyer_nick { get; set; }
public string cookie { get; set; }
public string status { get; set; }
public string notes { get; set; }
public DateTime add_time { get; set; }
public DateTime mdy_time { get; set; }
}
}
@@ -0,0 +1,100 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AllBase.Model.Result.PDDResult
{
public class PddBuyerOrderInfoLite
{
//平台快递编码 微信快递名称 PDD
//EMS EMS 邮政快递包裹
//JTSD 极兔速递 极兔速递
//STO 申通快递 申通快递
//YD 韵达速递 韵达快递
//YTO 圆通速递 圆通快递
//ZTO 中通快递 中通快递
public string outExpressCompanyMsg { get; set; } // 物流公司名称,可以尝试直接从列表中匹配
public string outExpressCompanyCode
{
get
{
if (outExpressCompanyMsg == null) return "";
if (outExpressCompanyMsg.Contains("邮政快递包裹")) return "EMS";
if (outExpressCompanyMsg.Contains("极兔速递")) return "JTSD";
if (outExpressCompanyMsg.Contains("申通快递")) return "STO";
if (outExpressCompanyMsg.Contains("韵达快递")) return "YD";
if (outExpressCompanyMsg.Contains("圆通快递")) return "YTO";
if (outExpressCompanyMsg.Contains("中通快递")) return "ZTO";
if (outExpressCompanyMsg.Contains("顺丰")) return "SF";
return "";
}
}
public string outExpressCompanyName
{
get
{
if (outExpressCompanyMsg == null) return "";
if (outExpressCompanyMsg.Contains("邮政快递包裹")) return "邮政快递包裹";
if (outExpressCompanyMsg.Contains("极兔速递")) return "极兔速递";
if (outExpressCompanyMsg.Contains("申通快递")) return "申通快递";
if (outExpressCompanyMsg.Contains("韵达快递")) return "韵达快递";
if (outExpressCompanyMsg.Contains("圆通快递")) return "圆通快递";
if (outExpressCompanyMsg.Contains("中通快递")) return "中通快递";
if (outExpressCompanyMsg.Contains("顺丰")) return "顺丰速运";
return "";
}
}
public string sendStatus { get; set; } = "";
public string buyerId { get; set; } // 买手Id
public string buyerName { get; set; } // 买手名称
public string order_sn { get; set; } // "260409-440915730042665",
public string parent_order_sn { get; set; } // "",
public int? order_amount { get; set; } // 2090,
public int? shipping_amount { get; set; } // 0,
public int? discount_amount { get; set; } // 200,
public int? service_amount { get; set; } // 0,
public string display_amount { get; set; } // 2090 实付款
public long? order_time { get; set; } // 1775731637
public string tracking_number { get; set; } // "JT5474027114111", 物流单号
public string order_link_url { get; set; } // "order.html?order_sn=260408-386657164922665&page_from=1",
public List<order_good> order_Goods { get; set; }
public string order_status_prompt { get; set; } // "待收货",
public string order_prompt_color { get; set; } // "#E02E24",
public string activity_type { get; set; } // 3,
public extra_info extra_info { get; set; }
}
public class extra_info
{
public order_hint order_hint { get; set; }
}
public class order_hint
{
public string type { get; set; } // "express_info",
public string message { get; set; } // "商家已发货,正在通知极兔速递取件",
}
public class order_good
{
public string goods_id { get; set; } // "865983669848",
public string sku_id { get; set; } // "1824184724450",
public string goods_name { get; set; } // "新款夏季性感上衣蕾丝吊带带胸垫防走光吊带打底背心女美背内衣女",
public int? goods_price { get; set; } // 2290,
public int? goods_number { get; set; } // 1,
public string thumb_url { get; set; } // "https://img.pddpic.com/mms-goods-image/2026-03-03/bdf06666-5663-4ddf-96a4-cfc09a3ba3aa.jpeg.a.jpeg",
public string spec { get; set; } // "XL(适合140-160斤),白色+可可棕",
public int? event_type { get; set; } // 0,
public int? is_pre_sale { get; set; } // 0,
public int? goods_type { get; set; } // 1,
public long? cat_id_1 { get; set; } // 8583,
public long? cat_id_2 { get; set; } // 8589,
public long? cat_id_3 { get; set; } // 8614,
public long? cat_id_4 { get; set; } // 0
}
}