From 33eafd67818b359bda78a0f14a7554552800ae38 Mon Sep 17 00:00:00 2001 From: wule Date: Tue, 16 Jun 2026 09:59:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E6=9C=AA=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=89=8D=E7=82=B9=E5=BA=97=E9=93=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=87=BB=E9=97=AA=E9=80=80=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TEMUKJD/WXForms/TalkForms/WxTalkForm.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/TEMUKJD/WXForms/TalkForms/WxTalkForm.cs b/TEMUKJD/WXForms/TalkForms/WxTalkForm.cs index f31a7ad..8ff55b6 100644 --- a/TEMUKJD/WXForms/TalkForms/WxTalkForm.cs +++ b/TEMUKJD/WXForms/TalkForms/WxTalkForm.cs @@ -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;