客服未加载完成前点店铺列表击闪退问题修复

This commit is contained in:
wule committed 2026-06-16 09:59:55 +08:00
1 parent 34efa54cc9
commit 33eafd6781
1 file changed
+7 -3
+7 -3
View File
@@ -1311,9 +1311,13 @@ namespace TemuKJD.WXForms.TalkForms
// currentShop.Chat.Load("https://store.weixin.qq.com/shop/kf");
var script = "document.documentElement.outerHTML;";
string htmlContent = currentShop.Chat.EvaluateScriptAsync(script).Result.Result.ParseToString();
if (currentShop.LoginStatus == "登录成功" && !htmlContent.Contains("按Enter发送"))
currentShop.Chat.Load("https://store.weixin.qq.com/shop/kf");
try
{
string htmlContent = currentShop.Chat.EvaluateScriptAsync(script).Result.Result.ParseToString();
if (currentShop.LoginStatus == "登录成功" && !htmlContent.Contains("按Enter发送"))
currentShop.Chat.Load("https://store.weixin.qq.com/shop/kf");
}
catch { }
}
currentShop = shop;