拼多多以图搜款上货 70% 拼多多接口上货和活动报名sku优化 微信店铺统计优化
This commit is contained in:
1 parent
90d40a6fd4
commit
79a752027a
20 files changed
+1481
-263
No files matched your search
@@ -0,0 +1,35 @@
|
||||
using CefSharp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TemuKJD.Helper
|
||||
{
|
||||
/// <summary>
|
||||
/// 屏蔽alert弹窗
|
||||
/// </summary>
|
||||
public class CustomJsDialogHandler : IJsDialogHandler
|
||||
{
|
||||
public bool OnBeforeUnloadDialog(IWebBrowser chromiumWebBrowser, IBrowser browser, string messageText, bool isReload, IJsDialogCallback callback)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void OnDialogClosed(IWebBrowser chromiumWebBrowser, IBrowser browser)
|
||||
{
|
||||
}
|
||||
|
||||
public bool OnJSDialog(IWebBrowser chromiumWebBrowser, IBrowser browser, string originUrl, CefJsDialogType dialogType, string messageText, string defaultPromptText, IJsDialogCallback callback, ref bool suppressMessage)
|
||||
{
|
||||
//suppressMessage = true;
|
||||
callback.Continue(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
public void OnResetDialogState(IWebBrowser chromiumWebBrowser, IBrowser browser)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user