44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using CefSharp;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using AllBase;
|
|
using NaiBa.CefHelper;
|
|
|
|
namespace TemuKJD
|
|
{
|
|
public class BoundObject
|
|
{
|
|
public List<KeyValueBase> ShopMessage = new List<KeyValueBase>();
|
|
public string MyProperty { get; set; }
|
|
|
|
public void TestCallback(IJavascriptCallback javascriptCallback)
|
|
{
|
|
using (javascriptCallback)
|
|
{
|
|
var response = new string[] { MyProperty };
|
|
javascriptCallback.ExecuteAsync(response);
|
|
}
|
|
|
|
}
|
|
|
|
public string GetToken(string html)
|
|
{
|
|
return html;
|
|
}
|
|
public string getHtml(string html)
|
|
{
|
|
return html;
|
|
}
|
|
|
|
public void Service(string html)
|
|
{
|
|
if(string.IsNullOrEmpty(html) || !html.Contains(","))
|
|
return;
|
|
string shop = html.Substring(0, html.IndexOf(","));
|
|
string newHtml = html.Substring(0, shop.Length + 1);
|
|
ShopMessage.Add(new KeyValueBase(shop,newHtml));
|
|
}
|
|
}
|
|
}
|