temu客户端程序
This commit is contained in:
commit
4aaf264e89
694 files changed
+263780
No files matched your search
@@ -0,0 +1,43 @@
|
||||
using CefSharp;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using AllBase;
|
||||
using NaiBa.CefHelper;
|
||||
|
||||
namespace LittleRabbit
|
||||
{
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user