From 5519a534302712900bab19e9801b8b33b5244467 Mon Sep 17 00:00:00 2001 From: wule Date: Wed, 15 Oct 2025 09:47:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=A0=87=E9=A2=98=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=E4=BB=A3=E7=A0=81=EF=BC=88=E5=B7=B2=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AdminForms/AdminProductPriceCheckForm.cs | 6 ++++ .../DbProductSelectListManageForm.Designer.cs | 32 +++++++++---------- .../DbProductSelectListManageForm.cs | 11 +++++++ ...oductThirdSelectListManageForm.Designer.cs | 32 +++++++++---------- .../PDDDBProdUserSelectForm.cs | 6 +++- 5 files changed, 54 insertions(+), 33 deletions(-) diff --git a/TEMUKJD/KJDForms/AdminForms/AdminProductPriceCheckForm.cs b/TEMUKJD/KJDForms/AdminForms/AdminProductPriceCheckForm.cs index 490a185..8c762ff 100644 --- a/TEMUKJD/KJDForms/AdminForms/AdminProductPriceCheckForm.cs +++ b/TEMUKJD/KJDForms/AdminForms/AdminProductPriceCheckForm.cs @@ -1051,6 +1051,12 @@ namespace TemuKJD.KJDForms.AdminForms // 还原原始标题 var newPName = RestoreProductName(pName); + // 测试修改标题最多字符数量 + //while (newPName.Length < 500) + //{ + // newPName += "长"; + //} + html = editPriceProductName(shop, item.ParseToString(), price.productId.ParseToString(), newPName); Thread.Sleep(Randomx.GetId(25, 75)); if (html.Contains("\"success\":true")) diff --git a/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.Designer.cs b/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.Designer.cs index e6e1ffc..f5adcff 100644 --- a/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.Designer.cs +++ b/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.Designer.cs @@ -39,6 +39,7 @@ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DbProductSelectListManageForm)); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.chkSameExtcodeRandomMainImg = new TemuKJD.UserComponent.UcCheckBox(this.components); this.lblSkuRandomLetterNotes = new System.Windows.Forms.Label(); this.btnAdd = new DevComponents.DotNetBar.PanelEx(); this.label21 = new System.Windows.Forms.Label(); @@ -144,7 +145,6 @@ this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage(); this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.chkSameExtcodeRandomMainImg = new TemuKJD.UserComponent.UcCheckBox(this.components); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); @@ -222,6 +222,18 @@ this.splitContainer1.SplitterDistance = 100; this.splitContainer1.TabIndex = 2; // + // chkSameExtcodeRandomMainImg + // + this.chkSameExtcodeRandomMainImg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.chkSameExtcodeRandomMainImg.AutoSize = true; + this.chkSameExtcodeRandomMainImg.Location = new System.Drawing.Point(1372, 71); + this.chkSameExtcodeRandomMainImg.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.chkSameExtcodeRandomMainImg.Name = "chkSameExtcodeRandomMainImg"; + this.chkSameExtcodeRandomMainImg.Size = new System.Drawing.Size(188, 21); + this.chkSameExtcodeRandomMainImg.TabIndex = 488; + this.chkSameExtcodeRandomMainImg.Text = "同货号主图随机+sku随机转主"; + this.chkSameExtcodeRandomMainImg.UseVisualStyleBackColor = true; + // // lblSkuRandomLetterNotes // this.lblSkuRandomLetterNotes.AutoSize = true; @@ -806,7 +818,7 @@ "核价成功", "核价成功(重复)", "重复"}); - this.cmbNotes.Location = new System.Drawing.Point(917, 5); + this.cmbNotes.Location = new System.Drawing.Point(917, 8); this.cmbNotes.Margin = new System.Windows.Forms.Padding(0); this.cmbNotes.Name = "cmbNotes"; this.cmbNotes.Size = new System.Drawing.Size(65, 25); @@ -831,7 +843,7 @@ "已上传", "草稿箱", "全部"}); - this.cmbStatus.Location = new System.Drawing.Point(814, 5); + this.cmbStatus.Location = new System.Drawing.Point(814, 8); this.cmbStatus.Margin = new System.Windows.Forms.Padding(0); this.cmbStatus.Name = "cmbStatus"; this.cmbStatus.Size = new System.Drawing.Size(65, 25); @@ -1198,7 +1210,7 @@ "全部", "重上", "已买"}); - this.cmbUserNotes.Location = new System.Drawing.Point(1044, 5); + this.cmbUserNotes.Location = new System.Drawing.Point(1044, 8); this.cmbUserNotes.Margin = new System.Windows.Forms.Padding(0); this.cmbUserNotes.Name = "cmbUserNotes"; this.cmbUserNotes.Size = new System.Drawing.Size(65, 25); @@ -1671,18 +1683,6 @@ this.statusBar.Size = new System.Drawing.Size(1558, 25); this.statusBar.TabIndex = 5; // - // chkSameExtcodeRandomMainImg - // - this.chkSameExtcodeRandomMainImg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.chkSameExtcodeRandomMainImg.AutoSize = true; - this.chkSameExtcodeRandomMainImg.Location = new System.Drawing.Point(1372, 71); - this.chkSameExtcodeRandomMainImg.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); - this.chkSameExtcodeRandomMainImg.Name = "chkSameExtcodeRandomMainImg"; - this.chkSameExtcodeRandomMainImg.Size = new System.Drawing.Size(188, 21); - this.chkSameExtcodeRandomMainImg.TabIndex = 488; - this.chkSameExtcodeRandomMainImg.Text = "同货号主图随机+sku随机转主"; - this.chkSameExtcodeRandomMainImg.UseVisualStyleBackColor = true; - // // DbProductSelectListManageForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; diff --git a/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs b/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs index 932c423..7c712ce 100644 --- a/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs +++ b/TEMUKJD/KJDForms/ProductSelectForms/DbProductSelectListManageForm.cs @@ -1623,6 +1623,17 @@ namespace TemuKJD.KJDForms.ProductSelectForms cell.Value = "正在保存草稿"; })); } + + ////测试模拟接口能上传的最大字符数,界面限制250个字符(实际汉字可能只有125个),模拟提交最大传成功998个字符约500个汉字 + ////while (Encoding.GetEncoding("gb2312").GetBytes(prodParam.productName).Length <= 1000) + //// prodParam.productName += "短"; + ////var length = Encoding.GetEncoding("gb2312").GetBytes(prodParam.productName).Length; + + //while (prodParam.productName.Length < 500) + // prodParam.productName += "a"; + //var length = prodParam.productName.Length; + //var length2 = Encoding.GetEncoding("gb2312").GetBytes(prodParam.productName).Length; + html = SaveDraft(shop, prodParam.productDraftId.ToString(), prodParam); if (html.Contains("\"success\":true")) { diff --git a/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.Designer.cs b/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.Designer.cs index 0a2db1f..2b87466 100644 --- a/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.Designer.cs +++ b/TEMUKJD/KJDForms/ProductThirdSelectForms/ProductThirdSelectListManageForm.Designer.cs @@ -81,6 +81,7 @@ this.txtSkuHeadText = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.txtSkuEndText = new System.Windows.Forms.TextBox(); + this.chkSkuRandomLetter = new TemuKJD.UserComponent.UcCheckBox(this.components); this.chkFission = new TemuKJD.UserComponent.UcCheckBox(this.components); this.chkHeadWords = new TemuKJD.UserComponent.UcCheckBox(this.components); this.chkEndWords = new TemuKJD.UserComponent.UcCheckBox(this.components); @@ -148,7 +149,6 @@ this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ucSplitPage1 = new TemuKJD.UserControls.UcSplitPage(); this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); - this.chkSkuRandomLetter = new TemuKJD.UserComponent.UcCheckBox(this.components); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); @@ -810,7 +810,7 @@ "全部", "重上", "已买"}); - this.cmbUserNotes.Location = new System.Drawing.Point(1026, 5); + this.cmbUserNotes.Location = new System.Drawing.Point(1026, 8); this.cmbUserNotes.Margin = new System.Windows.Forms.Padding(0); this.cmbUserNotes.Name = "cmbUserNotes"; this.cmbUserNotes.Size = new System.Drawing.Size(62, 25); @@ -827,7 +827,7 @@ "核价成功", "核价成功(重复)", "重复"}); - this.cmbNotes.Location = new System.Drawing.Point(901, 5); + this.cmbNotes.Location = new System.Drawing.Point(901, 8); this.cmbNotes.Margin = new System.Windows.Forms.Padding(0); this.cmbNotes.Name = "cmbNotes"; this.cmbNotes.Size = new System.Drawing.Size(63, 25); @@ -854,7 +854,7 @@ "已上传", "草稿箱", "全部"}); - this.cmbStatus.Location = new System.Drawing.Point(800, 5); + this.cmbStatus.Location = new System.Drawing.Point(800, 8); this.cmbStatus.Margin = new System.Windows.Forms.Padding(0); this.cmbStatus.Name = "cmbStatus"; this.cmbStatus.Size = new System.Drawing.Size(63, 25); @@ -924,6 +924,18 @@ this.txtSkuEndText.Size = new System.Drawing.Size(65, 23); this.txtSkuEndText.TabIndex = 454; // + // chkSkuRandomLetter + // + this.chkSkuRandomLetter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.chkSkuRandomLetter.AutoSize = true; + this.chkSkuRandomLetter.Location = new System.Drawing.Point(246, 4); + this.chkSkuRandomLetter.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); + this.chkSkuRandomLetter.Name = "chkSkuRandomLetter"; + this.chkSkuRandomLetter.Size = new System.Drawing.Size(96, 21); + this.chkSkuRandomLetter.TabIndex = 477; + this.chkSkuRandomLetter.Text = "Sku随机字符"; + this.chkSkuRandomLetter.UseVisualStyleBackColor = true; + // // chkFission // this.chkFission.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); @@ -1674,18 +1686,6 @@ this.statusBar.Size = new System.Drawing.Size(1534, 25); this.statusBar.TabIndex = 5; // - // chkSkuRandomLetter - // - this.chkSkuRandomLetter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); - this.chkSkuRandomLetter.AutoSize = true; - this.chkSkuRandomLetter.Location = new System.Drawing.Point(246, 4); - this.chkSkuRandomLetter.Margin = new System.Windows.Forms.Padding(6, 0, 0, 0); - this.chkSkuRandomLetter.Name = "chkSkuRandomLetter"; - this.chkSkuRandomLetter.Size = new System.Drawing.Size(96, 21); - this.chkSkuRandomLetter.TabIndex = 477; - this.chkSkuRandomLetter.Text = "Sku随机字符"; - this.chkSkuRandomLetter.UseVisualStyleBackColor = true; - // // ProductThirdSelectListManageForm // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; diff --git a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdUserSelectForm.cs b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdUserSelectForm.cs index 18c42e5..1cc55d5 100644 --- a/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdUserSelectForm.cs +++ b/TEMUKJD/PDDForms/ProductSelectForms/PDDDBProdUserSelectForm.cs @@ -1937,7 +1937,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms { img_type = "拖鞋"; } - else if (sneakersCatName.Contains(dbProd.cat_name) || dbProd.cat_name.Contains("鞋")) + else if (sneakersCatName.Contains(dbProd.cat_name) || dbProd.cat_name.Contains("鞋") || dbProd.cat_name.Contains("靴")) { img_type = "鞋(不含拖鞋)"; } @@ -2242,6 +2242,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms return "保存失败 " + error; } + //测试标题长度 + //while (prodParam.goods_name.Length < 35) + // prodParam.goods_name += "长"; + Thread.Sleep(Randomx.GetId(20, 100)); var saveProdRst = ""; if (isActivityFake)