客服未加载完成前点店铺列表击闪退问题修复
This commit is contained in:
1 parent
34efa54cc9
commit
33eafd6781
1 file changed
+7
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user