测试标题长度代码(已注释)
This commit is contained in:
1 parent
1487bc31c8
commit
5519a53430
5 files changed
+54
-33
No files matched your search
@@ -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"))
|
||||
|
||||
+16
-16
@@ -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;
|
||||
|
||||
@@ -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"))
|
||||
{
|
||||
|
||||
+16
-16
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user