拼多多买手订单优化 过滤移除拼多多机会商品采集指定商品 优化自动回复

This commit is contained in:
wule_5900x committed 2026-04-11 15:10:51 +08:00
1 parent 43587dbdd4
commit dc6f981a34
7 files changed
+466 -307

No files matched your search

@@ -173,21 +173,55 @@ namespace TemuKJD.WXForms.TalkForms
}
if (url.StartsWith("https://mobile.yangkeduo.com/orders.html?type=3"))
{
Task.Run(() =>
{
var data = responseData;
if (data.Contains("display_amount"))
{
var jsonData = BaseRegex.GetJsonObjStrJson(ref data, "ordersStore")?.FirstOrDefault();
var nickName = BaseRegex.GetStringJson(ref data, "nickName");
var buyerId = GlobalConfig.BuyerLoginList.FirstOrDefault(b => b.buyer_nick == nickName)?.buyer_id;
if (!string.IsNullOrEmpty(jsonData) && !string.IsNullOrEmpty(nickName) && !string.IsNullOrEmpty(buyerId))
{
var ordersStr = BaseRegex.GetJsonObjStrJson(ref jsonData, "initOdersList")?.FirstOrDefault();
if (ordersStr != null && ordersStr.StartsWith("{\"3\":"))
{
ordersStr = "{\"orders\":" + ordersStr.Substring(5);
CefReadBuyerOrder(buyerId, ordersStr);
}
}
}
});
}
if (url.StartsWith("https://mobile.yangkeduo.com/orders.html?type=2"))
{
Task.Run(() =>
{
var data = responseData;
if (data.Contains("display_amount"))
{
var jsonData = BaseRegex.GetJsonObjStrJson(ref data, "ordersStore")?.FirstOrDefault();
var nickName = BaseRegex.GetStringJson(ref data, "nickName");
var buyerId = GlobalConfig.BuyerLoginList.FirstOrDefault(b => b.buyer_nick == nickName)?.buyer_id;
if (!string.IsNullOrEmpty(jsonData) && !string.IsNullOrEmpty(nickName) && !string.IsNullOrEmpty(buyerId))
{
var ordersStr = BaseRegex.GetJsonObjStrJson(ref jsonData, "initOdersList")?.FirstOrDefault();
if (ordersStr != null && ordersStr.StartsWith("{\"2\":"))
{
ordersStr = "{\"orders\":" + ordersStr.Substring(5);
CefReadBuyerOrder(buyerId, ordersStr);
}
}
}
});
}
if (url.StartsWith("https://mobile.yangkeduo.com/proxy/api/api/aristotle/order_list_v3"))
{
Task.Run(() =>
Task.Run(() =>
{
CefReadBuyerOrder(url, responseData);
});
}
//if (url.StartsWith("https://mobile.yangkeduo.com/proxy/api/api/caterham/v3/query/my_order_group") && !string.IsNullOrEmpty(currentReadBuyer))
// currentReadBuyer = "";
}
string currentReadBuyer = "";
@@ -417,7 +451,7 @@ namespace TemuKJD.WXForms.TalkForms
Thread.Sleep(1000);
Invoke(new Action(() =>
{
btnSearch.Text = "暂停自动刷新";
btnSearch.Text = "自动刷新暂停中";
}));
continue;
}
@@ -473,6 +507,9 @@ namespace TemuKJD.WXForms.TalkForms
var cookieLst = JsonHelper.DeserializeJsonToList<CefSharp.Cookie>(buyer?.cookie);
var t = CEFBrowser.SetCookieAsync(JsonHelper.SerializeObject(cookieLst), cefWebBrowser.GetCookieManager(null));
cefWebBrowser.Load("https://mobile.yangkeduo.com/personal.html");
Thread.Sleep(Randomx.GetId(2000, 3000));
string readBuyer = buyer.buyer_id;
currentReadBuyer = buyer.buyer_id;
cefWebBrowser.Load("https://mobile.yangkeduo.com/orders.html?type=2");
+13 -13
View File
@@ -86,6 +86,7 @@ namespace TemuKJD.WXForms.TalkForms
this.btnPrev = new DevComponents.DotNetBar.PanelEx();
this.txtAddress = new System.Windows.Forms.TextBox();
this.pnlTalk = new System.Windows.Forms.Panel();
this.lblAutoReplyStatus = new System.Windows.Forms.Label();
this.chkShowAutoReplyNum = new System.Windows.Forms.CheckBox();
this.chkShowShopStatistics = new System.Windows.Forms.CheckBox();
this.chkIsAutoReLogin = new System.Windows.Forms.CheckBox();
@@ -102,7 +103,6 @@ namespace TemuKJD.WXForms.TalkForms
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewLinkColumn2 = new System.Windows.Forms.DataGridViewLinkColumn();
this.lblAutoReplyStatus = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pbLogo)).BeginInit();
this.panel3.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
@@ -136,7 +136,7 @@ namespace TemuKJD.WXForms.TalkForms
// lblVersionName
//
this.lblVersionName.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblVersionName.Location = new System.Drawing.Point(31695, 33);
this.lblVersionName.Location = new System.Drawing.Point(32229, 33);
//
// panel3
//
@@ -962,6 +962,17 @@ namespace TemuKJD.WXForms.TalkForms
this.pnlTalk.Size = new System.Drawing.Size(985, 544);
this.pnlTalk.TabIndex = 1;
//
// lblAutoReplyStatus
//
this.lblAutoReplyStatus.AutoSize = true;
this.lblAutoReplyStatus.Dock = System.Windows.Forms.DockStyle.Bottom;
this.lblAutoReplyStatus.Location = new System.Drawing.Point(0, 527);
this.lblAutoReplyStatus.Name = "lblAutoReplyStatus";
this.lblAutoReplyStatus.Size = new System.Drawing.Size(43, 17);
this.lblAutoReplyStatus.TabIndex = 207;
this.lblAutoReplyStatus.Text = "label5";
this.lblAutoReplyStatus.Visible = false;
//
// chkShowAutoReplyNum
//
this.chkShowAutoReplyNum.AutoSize = true;
@@ -1112,17 +1123,6 @@ namespace TemuKJD.WXForms.TalkForms
this.dataGridViewLinkColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
this.dataGridViewLinkColumn2.Width = 106;
//
// label5
//
this.lblAutoReplyStatus.AutoSize = true;
this.lblAutoReplyStatus.Dock = System.Windows.Forms.DockStyle.Bottom;
this.lblAutoReplyStatus.Location = new System.Drawing.Point(0, 527);
this.lblAutoReplyStatus.Name = "label5";
this.lblAutoReplyStatus.Size = new System.Drawing.Size(43, 17);
this.lblAutoReplyStatus.TabIndex = 207;
this.lblAutoReplyStatus.Text = "label5";
this.lblAutoReplyStatus.Visible = false;
//
// WxTalkForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;