子账户显示昵称 客服加入批量登录 客服登录后页面不刷新问题修复

This commit is contained in:
wule committed 2026-03-21 13:49:01 +08:00
1 parent b502c6a2ed
commit 8e919b0bd7
22 files changed
+869 -217

No files matched your search

@@ -43,6 +43,7 @@ namespace TemuKJD.WXForms.ShopForms
public ShopLoginInfo mainShop = null;
public ConcurrentList<ShopLoginInfo> lstSwitchShop = new ConcurrentList<ShopLoginInfo>();
public ConcurrentList<ShopSwitchInfo> lstSwitchInfo = new ConcurrentList<ShopSwitchInfo>();
public ConcurrentList<ShopLoginInfo> lstNeedUpdateShop = new ConcurrentList<ShopLoginInfo>();
const string DefaultUrl = "https://store.weixin.qq.com/shop/home";
const string shopLoginUrl = "https://store.weixin.qq.com/shop?redirect_url=%2Fhome";
@@ -295,14 +296,18 @@ namespace TemuKJD.WXForms.ShopForms
private void ShopLoginForm_FormClosed(object sender, FormClosedEventArgs e)
{
//OnSaveComplete(shop);
Task.Run(() => {
Thread.Sleep(500);
if (!this.Disposing && !this.IsDisposed)
{
MainForm.instance.Invoke(new Action(() => { this.Dispose(); }));
}
});
////OnSaveComplete(shop);
//Task.Run(() =>
//{
// Thread.Sleep(500);
// MainForm.instance.Invoke(new Action(() =>
// {
// if (!this.Disposing && !this.IsDisposed)
// {
// this.Dispose();
// }
// }));
//});
}
private void txtAddress_KeyDown(object sender, KeyEventArgs e)
@@ -330,6 +335,8 @@ namespace TemuKJD.WXForms.ShopForms
{
pbLoading.Visible = true;
btnRefreshNum.Enabled = false;
lstNeedUpdateShop = new ConcurrentList<ShopLoginInfo>();
Task.Run(() =>
{
foreach (var shop in lstSwitchShop)
@@ -352,6 +359,8 @@ namespace TemuKJD.WXForms.ShopForms
continue;
}
lstNeedUpdateShop.Add(shop);
string jsStr1 = @"document.getElementsByClassName('shop-info-popover')[0].style ='';
var divLst = document.getElementsByClassName('shop-info-popover')[0].getElementsByTagName('div');
for (i=0; i<divLst.length; i++){