1拼多多买手读单优化 2商品类目查询优化
This commit is contained in:
1 parent
7601f5b2f3
commit
4ae8e4f1b2
40 files changed
+4743
-745
No files matched your search
@@ -966,6 +966,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
buyer.browser.Load("https://mobile.yangkeduo.com/complaint_list.html?refer_page_name=personal&refer_page_sn=10001&tab=all");
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
Invoke(new Action(() => { WxTalkForm.instance.TitleText = buyer.buyer_nick + " 售后读取中"; }));
|
||||
BindBuyer(buyer, "正在读取售后");
|
||||
|
||||
int top = 0;
|
||||
@@ -1022,6 +1023,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
Invoke(new Action(() => { WxTalkForm.instance.TitleText = buyer.buyer_nick + " 待发货读取中"; }));
|
||||
BindBuyer(buyer, "正在读取待发货");
|
||||
|
||||
// 待发货
|
||||
@@ -1091,6 +1093,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
}
|
||||
Thread.Sleep(Randomx.GetId(2000, 3000));
|
||||
|
||||
Invoke(new Action(() => { WxTalkForm.instance.TitleText = buyer.buyer_nick + " 已发货读取中"; }));
|
||||
BindBuyer(buyer, "正在读取已发货");
|
||||
|
||||
// 已发货
|
||||
@@ -1157,6 +1160,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
Thread.Sleep(Randomx.GetId(6000, 8000));
|
||||
}
|
||||
isReadOrder = false;
|
||||
|
||||
Invoke(new Action(() => { WxTalkForm.instance.TitleText = "订单读取已结束,等待下次读取"; }));
|
||||
}, cancellationTokenSource.Token);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -1235,8 +1235,8 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
this.KeyPreview = true;
|
||||
this.Name = "WxTalkForm";
|
||||
this.ShowMaximizeBox = true;
|
||||
this.Text = "`";
|
||||
this.TitleText = "`";
|
||||
this.Text = "微信小店客服";
|
||||
this.TitleText = "微信小店客服";
|
||||
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.WxTalkForm_FormClosed);
|
||||
this.Load += new System.EventHandler(this.WxTalkForm_Load);
|
||||
this.Controls.SetChildIndex(this.panel3, 0);
|
||||
|
||||
@@ -182,18 +182,18 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
while (!StartUp.IsShopInit)
|
||||
Thread.Sleep(100);
|
||||
|
||||
SetMainBrowserUrl(GlobalConfig.ShopLoginList.FirstOrDefault());
|
||||
SetMainBrowserUrl(GlobalConfig.ValidShopLoginList.FirstOrDefault());
|
||||
// 网页初始化
|
||||
LoadShop();
|
||||
RefreshCookie(true);
|
||||
InitOrderForm(); // 加载店铺确认默认店铺后再初始化订单列表读取
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
foreach (var shopNote in GlobalConfig.ShopLoginList.Select(s => s.Notes).Where(s => !s.IsNullOrEmpty()).Distinct())
|
||||
foreach (var shopNote in GlobalConfig.ValidShopLoginList.Select(s => s.Notes).Where(s => !s.IsNullOrEmpty()).Distinct())
|
||||
{
|
||||
this.cmbFiltNotes.Items.Add(shopNote);
|
||||
}
|
||||
foreach (var group in GlobalConfig.ShopLoginList.Select(s => s.GroupName).Where(s => !s.IsNullOrEmpty()).Distinct())
|
||||
foreach (var group in GlobalConfig.ValidShopLoginList.Select(s => s.GroupName).Where(s => !s.IsNullOrEmpty()).Distinct())
|
||||
{
|
||||
this.cmbFiltGroups.Items.Add(group);
|
||||
}
|
||||
@@ -272,7 +272,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
//AutoReplayParam autoReplayParam = lstAutoReplayParam.FirstOrDefault();
|
||||
var autoReplayParamLst = lstAutoReplayParam.Where(r => r.nickName == autoReplayParam.nickName).ToList();
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == autoReplayParam.shopId);
|
||||
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.ShopId == autoReplayParam.shopId);
|
||||
if (shop == null)
|
||||
{
|
||||
lstAutoReplayParam.RemoveAll(r => r.shopId == autoReplayParam.shopId);
|
||||
@@ -449,7 +449,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
{
|
||||
for (int i = 0; i < 120; i++)
|
||||
{
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
foreach (var shop in GlobalConfig.ValidShopLoginList)
|
||||
{
|
||||
if (shop.Chat?.IsBrowserInitialized != true)
|
||||
continue;
|
||||
@@ -569,7 +569,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (shopList == null)
|
||||
shopList = new List<ShopLoginInfo>();
|
||||
if (shopList.Count == 0)
|
||||
shopList.AddRange(GlobalConfig.ShopLoginList);
|
||||
shopList.AddRange(GlobalConfig.ValidShopLoginList);
|
||||
|
||||
for (int i = 0; i < shopList.Count; i++)
|
||||
{
|
||||
@@ -728,7 +728,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
if (cef == null)
|
||||
return;
|
||||
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.Chat == cef);
|
||||
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.Chat == cef);
|
||||
if (shop == null)
|
||||
return;
|
||||
|
||||
@@ -1221,7 +1221,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
string shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value?.ToString();
|
||||
if (string.IsNullOrEmpty(shopId))
|
||||
return;
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
return;
|
||||
|
||||
@@ -1248,7 +1248,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
string shopId = dgvShop.Rows[e.RowIndex].Cells["colShopId"].Value?.ToString();
|
||||
if (string.IsNullOrEmpty(shopId))
|
||||
return;
|
||||
var shop = GlobalConfig.ShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
var shop = GlobalConfig.ValidShopLoginList.FirstOrDefault(s => s.ShopId == shopId);
|
||||
if (shop == null)
|
||||
return;
|
||||
|
||||
@@ -1298,7 +1298,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
string shopId = row.Cells["colShopId"].Value?.ToString();
|
||||
if (string.IsNullOrEmpty(shopId))
|
||||
return;
|
||||
var shop = GlobalConfig.ShopLoginList.Where(s => s.ShopId == shopId).FirstOrDefault();
|
||||
var shop = GlobalConfig.ValidShopLoginList.Where(s => s.ShopId == shopId).FirstOrDefault();
|
||||
if (shop == null)
|
||||
return;
|
||||
|
||||
@@ -1374,7 +1374,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
|
||||
if (!isAuto)
|
||||
WXShopListForm.UpdateShop();
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
foreach (var shop in GlobalConfig.ValidShopLoginList)
|
||||
{
|
||||
var r = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(x => x.Cells["colShopId"].Value.ToString() == shop.ShopId);
|
||||
Invoke(new Action(() =>
|
||||
@@ -1447,7 +1447,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
List<Task> tList = new List<Task>();
|
||||
if (refreshAll)
|
||||
lstShopAfterSale.Clear();
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
foreach (var shop in GlobalConfig.ValidShopLoginList)
|
||||
{
|
||||
var shopMainInfo = lstShopAfterSale.FirstOrDefault(sa => sa.ShopId == shop.ShopId);
|
||||
if (shopMainInfo == null)
|
||||
@@ -1580,7 +1580,7 @@ namespace TemuKJD.WXForms.TalkForms
|
||||
void RefreshMsgCount()
|
||||
{
|
||||
lstShopKfStatistics.Clear();
|
||||
foreach (var shop in GlobalConfig.ShopLoginList)
|
||||
foreach (var shop in GlobalConfig.ValidShopLoginList)
|
||||
{
|
||||
var kfMsg = new WxShopKfStatistics() { ShopId = shop.ShopId };
|
||||
var kfMsgRst = GetKfMsgStatistics(shop, BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date), BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now));
|
||||
|
||||
Reference in new issue
Block a user