1拼多多买手读单优化 2商品类目查询优化
This commit is contained in:
1 parent
7601f5b2f3
commit
4ae8e4f1b2
40 files changed
+4743
-745
No files matched your search
@@ -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