研究微信免审上架,其他一些功能优化

This commit is contained in:
wule committed 2026-01-21 19:13:58 +08:00
1 parent 42be98616b
commit 6d7b9d7b56
13 files changed
+812 -209

No files matched your search

+31 -5
View File
@@ -45,6 +45,8 @@
this.btnReload = new TemuKJD.UserControls.ButtonEx();
this.chkCloseAfterLogin = new DevComponents.DotNetBar.Controls.CheckBoxX();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
this.btnNext = new System.Windows.Forms.Button();
this.btnPrev = new System.Windows.Forms.Button();
this.txtAddress = new System.Windows.Forms.TextBox();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
@@ -85,7 +87,7 @@
this.splitContainer1.Panel2.Controls.Add(this.btnReload);
this.splitContainer1.Panel2.Controls.Add(this.chkCloseAfterLogin);
this.splitContainer1.Size = new System.Drawing.Size(1438, 736);
this.splitContainer1.SplitterDistance = 669;
this.splitContainer1.SplitterDistance = 671;
this.splitContainer1.SplitterWidth = 3;
this.splitContainer1.TabIndex = 4;
//
@@ -312,6 +314,8 @@
//
// splitContainer2.Panel1
//
this.splitContainer2.Panel1.Controls.Add(this.btnNext);
this.splitContainer2.Panel1.Controls.Add(this.btnPrev);
this.splitContainer2.Panel1.Controls.Add(this.txtAddress);
//
// splitContainer2.Panel2
@@ -321,25 +325,45 @@
this.splitContainer2.SplitterDistance = 26;
this.splitContainer2.TabIndex = 5;
//
// btnNext
//
this.btnNext.Location = new System.Drawing.Point(35, 3);
this.btnNext.Name = "btnNext";
this.btnNext.Size = new System.Drawing.Size(32, 23);
this.btnNext.TabIndex = 9;
this.btnNext.Text = "→";
this.btnNext.UseVisualStyleBackColor = true;
this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
//
// btnPrev
//
this.btnPrev.Location = new System.Drawing.Point(3, 3);
this.btnPrev.Name = "btnPrev";
this.btnPrev.Size = new System.Drawing.Size(32, 23);
this.btnPrev.TabIndex = 8;
this.btnPrev.Text = "←";
this.btnPrev.UseVisualStyleBackColor = true;
this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
//
// txtAddress
//
this.txtAddress.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtAddress.Location = new System.Drawing.Point(3, 3);
this.txtAddress.Location = new System.Drawing.Point(68, 3);
this.txtAddress.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.txtAddress.Name = "txtAddress";
this.txtAddress.Size = new System.Drawing.Size(1432, 23);
this.txtAddress.Size = new System.Drawing.Size(1367, 23);
this.txtAddress.TabIndex = 7;
this.txtAddress.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtAddress_KeyDown);
//
// PDDShopLoginForm
// WXShopLoginForm
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.ClientSize = new System.Drawing.Size(1440, 800);
this.Controls.Add(this.splitContainer2);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "PDDShopLoginForm";
this.Name = "WXShopLoginForm";
this.ShowMaximizeBox = true;
this.Text = "店铺登录";
this.TitleText = "店铺登录";
@@ -380,5 +404,7 @@
private DevComponents.DotNetBar.Controls.ComboBoxEx cmbMultiCookieName;
private DevComponents.DotNetBar.PanelEx btnMultiLogin;
private DevComponents.DotNetBar.PanelEx btnDel;
private System.Windows.Forms.Button btnNext;
private System.Windows.Forms.Button btnPrev;
}
}
@@ -424,6 +424,44 @@ namespace TemuKJD.WXForms.ShopForms
//public Func<object, string, string, request, bool> BeforeResourceLoadEvent; // sender, requestUrl, postData, request, true(表示取消执行)
private bool RequestHandler_BeforeResourceLoad(object sender, string url, string postData, IRequest request)
{
if (url.Contains("listingAuditFree") /*|| url.Contains("uploadPartBinary")*/)
{
//////postData = JsonHelper.SerializeObject(jObj);
//////postData = postData.Replace("999", "1005");
//string elements1 = "";
//string elements2 = "";
//string elements3 = "";
//if (request.PostData.Elements.Count > 0)
//{
// elements1 = Encoding.UTF8.GetString(request.PostData.Elements[0].Bytes);
// JObject jData = JsonHelper.JObjectParse(postData);
// string prodInfo = jData["data"].ParseToString();
// JObject jProdInfo = JsonHelper.JObjectParse(prodInfo);
// var prodId = BaseRegex.GetStringJson(ref prodInfo, "productId");
// //prodId = "10000468999806";
// var getEditProd = ProductForms.WXUpload.getEditProductV2(shop, prodId);
// JObject jEditProd = JsonHelper.JObjectParse(getEditProd);
// jProdInfo["product"] = jEditProd["product"];
// jData["data"] = JsonHelper.SerializeObject(jProdInfo);
// var postJson = JsonHelper.SerializeObject(jData);
// //request.PostData.Elements[0].Bytes = System.Text.Encoding.UTF8.GetBytes(postJson.Replace("999", "333"));
// //request.PostData.Elements[0].Bytes = System.Text.Encoding.UTF8.GetBytes(postData.Replace("999", "333"));
// request.PostData.Elements[0].Bytes = System.Text.Encoding.UTF8.GetBytes(postJson);
// //request.PostData.Elements[0].Bytes = System.Text.Encoding.UTF8.GetBytes(getEditProd);
// //request.PostData.Elements[0].Bytes = System.Text.Encoding.UTF8.GetBytes(elements1.Replace("999", "1099"));
//}
//if (request.PostData.Elements.Count > 1 && request.PostData.Elements[1].Bytes != null)
//{
// elements2 = Encoding.UTF8.GetString(request.PostData.Elements[1].Bytes);
//}
//if (request.PostData.Elements.Count > 2 && request.PostData.Elements[2].Bytes != null)
//{
// elements3 = Encoding.UTF8.GetString(request.PostData.Elements[2].Bytes);
//}
}
return false;
}
@@ -915,5 +953,15 @@ function getElementWithText(sText)
//ReturnPackageDetailForm form = new ReturnPackageDetailForm(this.shop);
//form.ShowDialog();
}
private void btnPrev_Click(object sender, EventArgs e)
{
cefWebBrowser.Back();
}
private void btnNext_Click(object sender, EventArgs e)
{
cefWebBrowser.Forward();
}
}
}