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;