类目识别功能 多选功能优化 微信上货优化 微信客服信息识别优化等

This commit is contained in:
wule committed 2026-02-04 11:59:58 +08:00
1 parent c27063d704
commit a2a6719a99
31 files changed
+2223 -750

No files matched your search

+49 -2
View File
@@ -119,6 +119,13 @@ namespace TemuKJD.WXForms.TalkForms
SetMainBrowserUrl(GlobalConfig.ShopLoginList.FirstOrDefault());
LoadShop();
InitAutoExecute();
Invoke(new Action(() =>
{
foreach (var shopNote in GlobalConfig.ShopLoginList.Select(s => s.Notes).Where(s => !s.IsNullOrEmpty()).Distinct())
{
this.cmbFiltNotes.Items.Add(shopNote);
}
}));
});
}
private void cefWebBrowser1_FrameLoadEnd(object sender, CefSharp.FrameLoadEndEventArgs e)
@@ -240,6 +247,7 @@ namespace TemuKJD.WXForms.TalkForms
dgvShop.Rows[iGrid].Cells["colShopId"].Value = shop.ShopId; // 店铺ID
dgvShop.Rows[iGrid].Cells["colShopName"].Value = shop.ShopAccount; // 店铺名称
dgvShop.Rows[iGrid].Cells["colShopNotes"].Value = shop.Notes; // 备注
dgvShop.Rows[iGrid].Cells["colLoginStatus"].Value = shop.LoginStatus == "登录成功" ? "在线" : "掉线"; // 登录状态
dicRowColor[dgvShop.Rows[iGrid]] = dgvShop.Rows[iGrid].DefaultCellStyle.BackColor;
@@ -385,9 +393,9 @@ namespace TemuKJD.WXForms.TalkForms
var send_open_account = summaryObj["send_open_account"].ParseToString();
if (send_open_account == shop.ShopId)
continue;
// 虽然没有回复,但是最后一条消息是七天以前收到的,返回
// 虽然没有回复,但是最后一条消息是两天以前收到的,返回
var lastUpTime = summaryObj["update_time"].ParseToLong();
if (lastUpTime < BaseClass.DateTimeToTimestampSeconds(DateTime.Now.AddDays(-7)))
if (lastUpTime < BaseClass.DateTimeToTimestampSeconds(DateTime.Now.AddDays(-2)))
continue;
// 其他情况,标记需要回复
needReply = true;
@@ -892,6 +900,8 @@ namespace TemuKJD.WXForms.TalkForms
currentShop = shop;
shop.Chat.Dock = DockStyle.Fill;
shop.Chat.BringToFront();
btnPrev.BringToFront();
btnNext.BringToFront();
}
Task.Run(() =>
@@ -922,5 +932,42 @@ namespace TemuKJD.WXForms.TalkForms
Invoke(new Action(() => { pbLoading.Visible = false; }));
});
}
private void btnFilterShop_Click(object sender, EventArgs e)
{
string shopName = txtFiltShopName.Text.Trim();
string notes = cmbFiltNotes.Text.Trim().Trim(';');
if (notes == "全部")
notes = "";
List<string> notesLst = notes.Split(new string[] { ";", ",", ",", " " }, StringSplitOptions.RemoveEmptyEntries).ToList();
foreach(DataGridViewRow row in dgvShop.Rows)
{
if ((row.Cells["colShopNotes"].Value.ParseToString().Contains(notes) || notesLst.Contains(row.Cells["colShopNotes"].Value.ParseToString())) &&
row.Cells["colShopName"].Value.ParseToString().Contains(shopName))
{
row.Visible = true;
}
else
{
row.Visible = false;
}
}
}
private void btnEmpty_Click(object sender, EventArgs e)
{
cmbFiltNotes.Text = "全部";
btnFilterShop_Click(null, null);
}
private void btnPrev_Click(object sender, EventArgs e)
{
currentShop.Chat.Back();
}
private void btnNext_Click(object sender, EventArgs e)
{
currentShop.Chat.Forward();
}
}
}