拼多多买手订单抓取推送

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

+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);
}
}