temu客户端程序
This commit is contained in:
commit
4aaf264e89
694 files changed
+263780
No files matched your search
@@ -0,0 +1,159 @@
|
||||
using AllBase;
|
||||
using LittleRabbit.LittleRabbitForms.BaseForms;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace LittleRabbit.LittleRabbitForms
|
||||
{
|
||||
public partial class TbSettleSlideForm : LRBaseForm
|
||||
{
|
||||
public IeForm tbDetailForm;
|
||||
public string slideUrl = "";
|
||||
public TbSettleSlideForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
TitleText = "解除滑块";
|
||||
//IsMinized = false;
|
||||
//IsMaxized = false;
|
||||
}
|
||||
|
||||
private void panelCopyCookies_Click(object sender, EventArgs e)
|
||||
{
|
||||
string cookies = string.Empty;
|
||||
IDataObject iData = Clipboard.GetDataObject();
|
||||
if (iData.GetDataPresent(DataFormats.Text))
|
||||
{
|
||||
cookies = (string)iData.GetData(DataFormats.Text);
|
||||
}
|
||||
if (string.IsNullOrEmpty(cookies))
|
||||
{
|
||||
return;
|
||||
}
|
||||
string x5Sec = BaseRegex.GetMatchRegexString(ref cookies, "\"name\": \"x5sec\",[\\s\\S]+?\"value\": \"([\\s\\S]+?)\"");
|
||||
if (string.IsNullOrEmpty(x5Sec))
|
||||
{
|
||||
x5Sec = BaseRegex.GetMatchRegexString(ref cookies, "x5sec=([\\s\\S]+?);");
|
||||
}
|
||||
if (string.IsNullOrEmpty(x5Sec))
|
||||
{
|
||||
Thread.Sleep(2000);
|
||||
BaseClass.x5Sec = BaseRegex.GetMatchRegexString(ref IeForm.ChromeCookies, @"x5sec=([\w\W]+?);");
|
||||
}
|
||||
if (string.IsNullOrEmpty(x5Sec))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (tbDetailForm != null)
|
||||
{
|
||||
tbDetailForm.x5Sec = x5Sec;
|
||||
tbDetailForm.ExecX5secJs();
|
||||
}
|
||||
new Thread(CloseForm).Start();
|
||||
BaseClass.x5Sec = x5Sec;
|
||||
//var tbCookes = BaseClass.CookiesAll["taobao.com"];
|
||||
//foreach (KeyValuePair<string, Dictionary<string, string>> co in BaseClass.CookiesAll)//同步到系统
|
||||
//{
|
||||
// if (true)
|
||||
// {
|
||||
|
||||
// }
|
||||
// string cook = "";
|
||||
// foreach (KeyValuePair<string, string> c in co.Value)
|
||||
// {
|
||||
// if (c.Key == "x5sec")
|
||||
// {
|
||||
// cook += c.Key + "=" + x5Sec + "; ";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// cook += c.Key + "=" + c.Value + "; ";
|
||||
// }
|
||||
// }
|
||||
// if (BaseClass.CookiesAllString.ContainsKey(co.Key))
|
||||
// {
|
||||
// BaseClass.CookiesAllString[co.Key] = cook;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// BaseClass.CookiesAllString.Add(co.Key, cook);
|
||||
// }
|
||||
//}
|
||||
new Thread(CloseForm).Start();
|
||||
//CloseForm();
|
||||
}
|
||||
|
||||
private void TbSettleSlideForm_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
//BaseClass.SlideIsClose = false;
|
||||
//BaseClass.SlideCookiesReplace = false;
|
||||
//BaseClass.IeUrlShow = "";
|
||||
}
|
||||
|
||||
private void panelInstall_Click(object sender, EventArgs e)
|
||||
{
|
||||
GetHtml.OpenUrl("https://ext.chrome.360.cn/webstore/detail/fngmhnnpilhplaeedifhccceomclgfbg");
|
||||
}
|
||||
|
||||
private void panelOpenSlideUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(slideUrl))
|
||||
{
|
||||
return;
|
||||
}
|
||||
GetHtml.OpenUrl(slideUrl);
|
||||
}
|
||||
|
||||
private void panelCopySlideUrl_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(slideUrl))
|
||||
{
|
||||
return;
|
||||
}
|
||||
Clipboard.SetDataObject(slideUrl);
|
||||
}
|
||||
|
||||
|
||||
public void CloseForm()
|
||||
{
|
||||
try
|
||||
{
|
||||
Thread.Sleep(1000);
|
||||
if (InvokeRequired)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.Close();
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
//throw;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void panelEx1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (slideUrl.Contains("https://trade-acs.m.taobao.com/"))
|
||||
Clipboard.SetDataObject("https://trade-acs.m.taobao.com/");
|
||||
else if (slideUrl.Contains("https://acs.m.taobao.com"))
|
||||
Clipboard.SetDataObject("https://acs.m.taobao.com");
|
||||
else
|
||||
Clipboard.SetDataObject("https://guide-acs.m.taobao.com:443");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user