标题分词功能

This commit is contained in:
wule committed 2025-07-29 19:15:50 +08:00
1 parent 22e5ae4ab7
commit c032747651
22 files changed
+746 -185

No files matched your search

+1 -1
View File
@@ -183,7 +183,7 @@ namespace TemuKJD.KJDForms.ShopForms
shop.GroupName = BaseRegex.GetStringJson(ref shopStr, "shop_group");
shop.Cookies = BaseRegex.GetStringJson(ref shopStr, "cookie");
shop.Cookies = shop.Cookies.Replace("&", "&").Replace("%", "%").Replace("+", "+");
shop.Cookies2 = BaseRegex.GetStringJson(ref shopStr, "cookie2");
shop.Cookies2 = BaseRegex.GetStringJson(ref shopStr, "cookie2").ParseToString();
shop.Cookies2 = shop.Cookies2.Replace("&", "&").Replace("%", "%").Replace("+", "+");
shop.CompanyName = BaseRegex.GetStringJson(ref shopStr, "company_name");
shop.Notes = BaseRegex.GetStringJson(ref shopStr, "notes");
+8 -8
View File
@@ -183,19 +183,19 @@ namespace TemuKJD.KJDForms.ShopForms
}
StartUp.SaveLocalShopLoginInfo(); // 店铺保存到本地
ShopListForm.UpdateServerShopCookies(shop, shop.Cookies); // 店铺cookie写入服务端,多店共用一个登录账号一组cookie
//OnSaveComplete(shop);
//if (this.Created && this.chkCloseAfterLogin.Checked)
//{
// Invoke(new Action(() => { this.Close(); }));
//}
//else
// break;
OnSaveComplete(shop);
if (this.Created && this.chkCloseAfterLogin.Checked)
{
Invoke(new Action(() => { this.Close(); }));
}
else
break;
}
//cefWebBrowser.Load(shopMainUrl2);
}
if (this.shop != null && currentUrl.TrimEnd('/') == shopMainUrl2)
if (1 == 2 && this.shop != null && currentUrl.TrimEnd('/') == shopMainUrl2)
{//https://agentseller.temu.com
if (!cefWebBrowser.GetBrowser().MainFrame.IsValid)
continue;
+21 -2
View File
@@ -35,12 +35,14 @@
this.txtLoginName = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.btnOk = new TemuKJD.UserControls.ButtonEx();
this.buttonEx1 = new TemuKJD.UserControls.ButtonEx();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// panel2
//
this.panel2.BackColor = System.Drawing.Color.White;
this.panel2.Controls.Add(this.buttonEx1);
this.panel2.Controls.Add(this.label8);
this.panel2.Controls.Add(this.txtCookieJs);
this.panel2.Controls.Add(this.txtLoginName);
@@ -61,7 +63,7 @@
this.label8.TabIndex = 386;
this.label8.Text = "CookieJs";
//
// txtNotes
// txtCookieJs
//
//
//
@@ -78,7 +80,7 @@
this.txtCookieJs.Border.PaddingTop = 2;
this.txtCookieJs.Location = new System.Drawing.Point(91, 58);
this.txtCookieJs.Multiline = true;
this.txtCookieJs.Name = "txtNotes";
this.txtCookieJs.Name = "txtCookieJs";
this.txtCookieJs.Size = new System.Drawing.Size(452, 370);
this.txtCookieJs.TabIndex = 385;
//
@@ -114,6 +116,22 @@
this.btnOk.UseVisualStyleBackColor = false;
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
//
// buttonEx1
//
this.buttonEx1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
this.buttonEx1.Cursor = System.Windows.Forms.Cursors.Hand;
this.buttonEx1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.buttonEx1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.buttonEx1.ForeColor = System.Drawing.Color.White;
this.buttonEx1.Location = new System.Drawing.Point(91, 443);
this.buttonEx1.Margin = new System.Windows.Forms.Padding(2);
this.buttonEx1.Name = "buttonEx1";
this.buttonEx1.Size = new System.Drawing.Size(171, 26);
this.buttonEx1.TabIndex = 387;
this.buttonEx1.Text = "去Temu首页获取cookie js";
this.buttonEx1.UseVisualStyleBackColor = false;
this.buttonEx1.Click += new System.EventHandler(this.btnGetCookie_Click);
//
// ShopUpdateCookieForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
@@ -140,5 +158,6 @@
private UserControls.ButtonEx btnOk;
private System.Windows.Forms.Label label8;
private DevComponents.DotNetBar.Controls.TextBoxX txtCookieJs;
private UserControls.ButtonEx buttonEx1;
}
}
@@ -262,5 +262,23 @@ namespace TemuKJD.KJDForms.ShopForms
}
return "success";
}
private void btnGetCookie_Click(object sender, EventArgs e)
{
//复制cookie
var cookJs = @"
document.body.innerHTML = '<button id=""button1"" onclick=""geCookie();"" style=""margin:10px;"">点击我复制cookie</button>' + document.body.innerHTML;
function geCookie()
{
var cookieText = document.cookie;
navigator.clipboard.writeText(cookieText).then(function() {
alert('复制cookie成功!');
}, function(err) {
alert('复制cookie失败: ', err);
});
}";
Clipboard.SetDataObject(cookJs);
BaseMsgForm.ShowInfo("js复制成功");
}
}
}