1抖音上传服务端模板 2拼多多活动调整80% 3拼多多机会商品抓取 20%
This commit is contained in:
1 parent
9e5fed3989
commit
96ca090fc4
25 files changed
+1512
-586
No files matched your search
@@ -119,10 +119,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.pbLoading = new System.Windows.Forms.PictureBox();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.dgvSelectProduct = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
this.colCheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colSelectId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -145,6 +141,10 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.ColDelete = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colAddTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOpResult = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.splitContainer4 = new System.Windows.Forms.SplitContainer();
|
||||
this.statusBar = new TemuKJD.UserControls.StatusBarUserControl();
|
||||
this.btnClear = new DevComponents.DotNetBar.PanelEx();
|
||||
this.panelEx1 = new DevComponents.DotNetBar.PanelEx();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -176,7 +176,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
//
|
||||
// splitContainer1
|
||||
//
|
||||
this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer1.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
|
||||
this.splitContainer1.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer1.Name = "splitContainer1";
|
||||
@@ -1168,7 +1167,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.splitContainer2.Panel2.Controls.Add(this.txtTest20981);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.btnTest20981);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.pbLoading);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.panel1);
|
||||
this.splitContainer2.Panel2.Controls.Add(this.dgvSelectProduct);
|
||||
this.splitContainer2.Panel2.Padding = new System.Windows.Forms.Padding(0, 0, 4, 0);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1484, 372);
|
||||
@@ -1349,9 +1347,9 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.panel1.Location = new System.Drawing.Point(35, 53);
|
||||
this.panel1.Location = new System.Drawing.Point(699, 552);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(1106, 286);
|
||||
this.panel1.Size = new System.Drawing.Size(881, 86);
|
||||
this.panel1.TabIndex = 189;
|
||||
this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
|
||||
//
|
||||
@@ -1406,86 +1404,6 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.dgvSelectProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSelectProduct_CellContentClick);
|
||||
this.dgvSelectProduct.Scroll += new System.Windows.Forms.ScrollEventHandler(this.dgvSelectProduct_Scroll);
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.splitContainer4.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer4.Name = "splitContainer4";
|
||||
//
|
||||
// splitContainer4.Panel1
|
||||
//
|
||||
this.splitContainer4.Panel1.Controls.Add(this.statusBar);
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.btnClear);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.panelEx1);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(1484, 26);
|
||||
this.splitContainer4.SplitterDistance = 793;
|
||||
this.splitContainer4.TabIndex = 3;
|
||||
//
|
||||
// statusBar
|
||||
//
|
||||
this.statusBar.BackColor = System.Drawing.Color.White;
|
||||
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.statusBar.Location = new System.Drawing.Point(0, 0);
|
||||
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.statusBar.Name = "statusBar";
|
||||
this.statusBar.Size = new System.Drawing.Size(793, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnClear.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnClear.Location = new System.Drawing.Point(475, 2);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(90, 21);
|
||||
this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.Style.GradientAngle = 90;
|
||||
this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.TabIndex = 440;
|
||||
this.btnClear.Text = "清空结果";
|
||||
this.btnClear.Visible = false;
|
||||
//
|
||||
// panelEx1
|
||||
//
|
||||
this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.panelEx1.Location = new System.Drawing.Point(568, 2);
|
||||
this.panelEx1.Name = "panelEx1";
|
||||
this.panelEx1.Size = new System.Drawing.Size(115, 21);
|
||||
this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.panelEx1.Style.GradientAngle = 90;
|
||||
this.panelEx1.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelEx1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.panelEx1.TabIndex = 668;
|
||||
this.panelEx1.Text = "停止当前操作";
|
||||
this.panelEx1.Visible = false;
|
||||
//
|
||||
// colCheck
|
||||
//
|
||||
this.colCheck.Frozen = true;
|
||||
@@ -1664,12 +1582,93 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
this.colOpResult.ReadOnly = true;
|
||||
this.colOpResult.Width = 260;
|
||||
//
|
||||
// splitContainer4
|
||||
//
|
||||
this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitContainer4.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
|
||||
this.splitContainer4.Location = new System.Drawing.Point(0, 0);
|
||||
this.splitContainer4.Name = "splitContainer4";
|
||||
//
|
||||
// splitContainer4.Panel1
|
||||
//
|
||||
this.splitContainer4.Panel1.Controls.Add(this.statusBar);
|
||||
//
|
||||
// splitContainer4.Panel2
|
||||
//
|
||||
this.splitContainer4.Panel2.Controls.Add(this.btnClear);
|
||||
this.splitContainer4.Panel2.Controls.Add(this.panelEx1);
|
||||
this.splitContainer4.Size = new System.Drawing.Size(1484, 26);
|
||||
this.splitContainer4.SplitterDistance = 793;
|
||||
this.splitContainer4.TabIndex = 3;
|
||||
//
|
||||
// statusBar
|
||||
//
|
||||
this.statusBar.BackColor = System.Drawing.Color.White;
|
||||
this.statusBar.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.statusBar.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.statusBar.Location = new System.Drawing.Point(0, 0);
|
||||
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.statusBar.Name = "statusBar";
|
||||
this.statusBar.Size = new System.Drawing.Size(793, 26);
|
||||
this.statusBar.TabIndex = 2;
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Anchor = System.Windows.Forms.AnchorStyles.Right;
|
||||
this.btnClear.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnClear.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnClear.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnClear.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnClear.Location = new System.Drawing.Point(475, 2);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(90, 21);
|
||||
this.btnClear.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnClear.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnClear.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnClear.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.Style.GradientAngle = 90;
|
||||
this.btnClear.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnClear.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnClear.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnClear.TabIndex = 440;
|
||||
this.btnClear.Text = "清空结果";
|
||||
this.btnClear.Visible = false;
|
||||
//
|
||||
// panelEx1
|
||||
//
|
||||
this.panelEx1.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.panelEx1.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.panelEx1.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.panelEx1.Location = new System.Drawing.Point(568, 2);
|
||||
this.panelEx1.Name = "panelEx1";
|
||||
this.panelEx1.Size = new System.Drawing.Size(115, 21);
|
||||
this.panelEx1.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelEx1.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(185)))), ((int)(((byte)(215)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine;
|
||||
this.panelEx1.Style.BorderColor.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
|
||||
this.panelEx1.Style.GradientAngle = 90;
|
||||
this.panelEx1.StyleMouseDown.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelEx1.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.panelEx1.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.panelEx1.StyleMouseOver.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.panelEx1.TabIndex = 668;
|
||||
this.panelEx1.Text = "停止当前操作";
|
||||
this.panelEx1.Visible = false;
|
||||
//
|
||||
// PDDDBProdUserSelectForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = System.Drawing.Color.White;
|
||||
this.ClientSize = new System.Drawing.Size(1484, 546);
|
||||
this.ClientSize = new System.Drawing.Size(1583, 641);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.Name = "PDDDBProdUserSelectForm";
|
||||
this.Text = "PDDDBProdUserSelectForm";
|
||||
|
||||
@@ -66,6 +66,12 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
|
||||
private void UserSelectDbProductForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.splitContainer1.Dock = DockStyle.Fill;
|
||||
this.panel1.Location = new Point(40, 30);
|
||||
this.panel1.Width = this.Width - 80;
|
||||
this.panel1.Height = this.Height - 60;
|
||||
this.panel1.SendToBack();
|
||||
|
||||
lstTemuDBProductSelect = NaiBa.Util.Helper.ConfigHelper.LoadConfig<NaiBa.Util.ConcurrentList<TemuDBProductSelect>>("pdd_db_prod_upload_list");
|
||||
if (lstTemuDBProductSelect == null)
|
||||
lstTemuDBProductSelect = new NaiBa.Util.ConcurrentList<TemuDBProductSelect>();
|
||||
@@ -1109,6 +1115,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
}
|
||||
}
|
||||
|
||||
var xxx = new PDDShopBrowserObject().getPDDProductWidthEdit(shop, prodParam.goods_id.ToString(), prodParam.goods_commit_id, true, true);
|
||||
|
||||
Thread.Sleep(Randomx.GetId(10, 50));
|
||||
rst = QueryChanceCommitDetail(shop, goods_id.ToString(), draftId, prodInfo.chance_tab);
|
||||
@@ -1287,7 +1294,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
prodParam.country_id = prodInfo.detail.country_id.ParseToString();
|
||||
prodParam.customizable = prodInfo.detail.customizable;
|
||||
prodParam.customs = prodInfo.detail.customs;
|
||||
prodParam.damage_claim = prodInfo.detail.damage_claim;
|
||||
prodParam.damage_claim = prodInfo.detail.damage_claim.ParseToInt();
|
||||
prodParam.dead_line_seconds = 86399; // 1天?
|
||||
prodParam.decorationCanEdit = true;
|
||||
foreach (var floorItem in prodInfo.decoration.floor_list)
|
||||
@@ -1358,11 +1365,16 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
prodParam.delivery_one_day = 0;
|
||||
prodParam.delivery_type = null;
|
||||
prodParam.detail_video = new List<object>();
|
||||
prodParam.effect_logistics_weight_limit = 20000;
|
||||
//prodParam.effect_logistics_weight_limit = 20000;
|
||||
prodParam.effect_logistics_weight_limit = 10000;
|
||||
prodParam.electric_status = 0;
|
||||
prodParam.elec_goods_attributes = prodInfo.detail.elec_goods_attributes;
|
||||
prodParam.explanation_video = new List<object>();
|
||||
prodParam.extend_warranty_dto = JsonHelper.DeserializeJsonToObject<extend_warranty_dto_param>(JsonHelper.SerializeObject(prodInfo.detail.extend_warranty_dto));
|
||||
if (prodParam.extend_warranty_dto == null)
|
||||
{
|
||||
prodParam.extend_warranty_dto = new extend_warranty_dto_param();
|
||||
}
|
||||
prodParam.first_upload_carousel = true;
|
||||
prodParam.gallery = JsonHelper.DeserializeJsonToList<gallery_param>(JsonHelper.SerializeObject(prodInfo.detail.galleries));
|
||||
// 机会商品保留最后一张主图将一直是机会商品
|
||||
@@ -1383,8 +1395,8 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
prodParam.goods_name = prodInfo.detail.goods_name;
|
||||
prodParam.goods_name_prefix = prodInfo.detail.goods_name_prefix;
|
||||
prodParam.goods_pattern = prodInfo.detail.goods_pattern;
|
||||
//prodParam.goods_properties = new List<goods_spec_property>(); // 商品属性,通过接口获取商品模板并做匹配
|
||||
prodParam.goods_properties = new List<goods_spec_property_param>(); // 商品属性,通过接口获取商品模板并做匹配
|
||||
var goods_properties = new List<goods_spec_property_param>(); // 商品属性,暂存
|
||||
//step1(共3个step)通过商品属性获取二级必填属性
|
||||
foreach (var propInfo in prodInfo.property.goods_properties)
|
||||
{
|
||||
@@ -1487,7 +1499,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
value_unit = "",
|
||||
content = (propInfo.values.FirstOrDefault()?.value).ParseToString(),
|
||||
};
|
||||
prodParam.goods_properties.Add(prop);
|
||||
goods_properties.Add(prop);
|
||||
}
|
||||
//step3(共3个step)如果有遗漏的必填(required)商品属性,按默认值填写
|
||||
foreach (var propTemp in prodCatTemplateInfo.modules.FirstOrDefault()?.propertys)
|
||||
@@ -1509,10 +1521,28 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
value_unit = "",
|
||||
content = contentOther.value,
|
||||
};
|
||||
prodParam.goods_properties.Add(prop);
|
||||
goods_properties.Add(prop);
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (var prodTempInfo in prodCatTemplateInfo.modules.FirstOrDefault()?.propertys)
|
||||
{
|
||||
var prop = goods_properties.FirstOrDefault(p => p.ref_pid == prodTempInfo.ref_pid);
|
||||
if (prop == null)
|
||||
{
|
||||
prop = new goods_spec_property_param()
|
||||
{
|
||||
template_pid = prodTempInfo.id,
|
||||
template_module_id = prodCatTemplateInfo.modules.FirstOrDefault().id,
|
||||
ref_pid = prodTempInfo.ref_pid,
|
||||
pid = prodTempInfo.pid,
|
||||
value = "",
|
||||
value_unit = "",
|
||||
content = "",
|
||||
};
|
||||
}
|
||||
prodParam.goods_properties.Add(prop);
|
||||
}
|
||||
|
||||
//foreach (var spec_prop in prodInfo.property.)
|
||||
|
||||
@@ -1537,7 +1567,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
prodParam.is_all_weight_same = true;
|
||||
prodParam.is_auto_save = false;
|
||||
prodParam.is_certificate_provide = prodInfo.detail.is_certificate_provide;
|
||||
prodParam.is_customized = prodInfo.detail.is_customized;
|
||||
prodParam.is_customized = prodInfo.detail.is_customized.ParseToInt();
|
||||
prodParam.is_customs = prodInfo.detail.is_customs;
|
||||
prodParam.is_default_template_id = 0; // ?
|
||||
prodParam.is_default_template_id = 1; // ?
|
||||
@@ -1549,17 +1579,17 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
prodParam.is_only_for_remote_area = prodInfo.detail.is_only_for_remote_area;
|
||||
prodParam.is_pre_sale = prodInfo.detail.is_pre_sale;
|
||||
prodParam.is_refundable = prodInfo.detail.is_refundable;
|
||||
prodParam.is_refundable_fifteen_day = prodInfo.detail.is_refundable_fifteen_day;
|
||||
prodParam.is_shop = 0; // 是否上架? prodInfo.detail.is_shop;
|
||||
prodParam.is_size_change_casually = prodInfo.detail.is_size_change_casually;
|
||||
prodParam.is_refundable_fifteen_day = prodInfo.detail.is_refundable_fifteen_day.ParseToInt();
|
||||
prodParam.is_shop = 1; // 是否上架? prodInfo.detail.is_shop;
|
||||
prodParam.is_size_change_casually = prodInfo.detail.is_size_change_casually.ParseToInt();
|
||||
prodParam.is_sku_pre_sale = prodInfo.detail.is_sku_pre_sale;
|
||||
prodParam.is_sku_shipment = prodInfo.detail.is_sku_shipment;
|
||||
prodParam.is_sku_shipment = prodInfo.detail.is_sku_shipment.ParseToInt();
|
||||
prodParam.is_spring_festival_open_tag = prodInfo.detail.is_spring_festival_open_tag;
|
||||
prodParam.is_transfer_spu = false;
|
||||
prodParam.is_two_num_group = prodInfo.detail.is_two_num_group;
|
||||
prodParam.is_warranty_one_year = prodInfo.detail.is_warranty_one_year;
|
||||
prodParam.is_wp_service = prodInfo.detail.is_wp_service;
|
||||
prodParam.lack_of_weight_claim = prodInfo.detail.lack_of_weight_claim;
|
||||
prodParam.is_warranty_one_year = prodInfo.detail.is_warranty_one_year.ParseToInt();
|
||||
prodParam.is_wp_service = prodInfo.detail.is_wp_service.ParseToInt();
|
||||
prodParam.lack_of_weight_claim = prodInfo.detail.lack_of_weight_claim.ParseToInt();
|
||||
prodParam.local_service_id_list = prodInfo.detail.local_service_id_list;
|
||||
prodParam.mai_jia_zi_ti = prodInfo.detail.mai_jia_zi_ti;
|
||||
prodParam.market_price = prodInfo.detail.market_price;
|
||||
@@ -1630,7 +1660,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
prodParam.shipment_limit_second = prodInfo.detail.shipment_limit_second; //发货时间 86400 = 24 小时 一般设置成2天
|
||||
//if (prodParam.shipment_limit_second == 0)
|
||||
prodParam.shipment_limit_second = 86400 * 2;
|
||||
prodParam.shipment_limit_second_origin_value = 0;
|
||||
prodParam.shipment_limit_second_origin_value = 172800;
|
||||
prodParam.shop_group_id = prodInfo.detail.shop_group_id.ParseToInt();
|
||||
prodParam.showGoodsInstruction = true;
|
||||
prodParam.size_parent_spec_id = prodInfo.detail.size_parent_spec_id; //尝试使用上家的尺码表,不行则下面再修改
|
||||
@@ -1690,6 +1720,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
skuInfoEditLst = JsonHelper.DeserializeJsonToList<sku_edit_item>(JsonHelper.SerializeObject(prodInfo.detail.sku));
|
||||
}
|
||||
|
||||
Dictionary<string, string> new_Sku_Img_Dic = new Dictionary<string, string>();
|
||||
foreach (var skuInfo in skuInfoEditLst)
|
||||
{
|
||||
var skuParam = new sku_param()
|
||||
@@ -1752,6 +1783,55 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
}
|
||||
}
|
||||
|
||||
if (pddUploadRule.IsSignActivity && 1 == 1) // 在图片上画线,没有效果
|
||||
{
|
||||
if (!new_Sku_Img_Dic.Keys.Contains(skuParam.thumb_url))
|
||||
{
|
||||
string getImgError;
|
||||
var image = GetHtml.GetUrlImg(skuParam.thumb_url.Replace("https://", "http://"), out getImgError);
|
||||
var imageBg = new Bitmap(image.Width, image.Height);
|
||||
if (!string.IsNullOrEmpty(getImgError) || image == null)
|
||||
{
|
||||
return "设置升级款sku失败 图片上传失败";
|
||||
}
|
||||
try
|
||||
{
|
||||
using (Graphics g = Graphics.FromImage(imageBg))
|
||||
{
|
||||
g.DrawImage(image, new Rectangle(0, 0, image.Width, image.Height), 0, 0, image.Width, image.Height, GraphicsUnit.Pixel);
|
||||
//Pen pen = new Pen(Color.White);
|
||||
//g.DrawLine(pen, Randomx.GetId(0, image.Width), Randomx.GetId(0, image.Height), Randomx.GetId(0, image.Width), Randomx.GetId(0, image.Height));
|
||||
//pen = new Pen(Color.Blue);
|
||||
//g.DrawLine(pen, Randomx.GetId(0, image.Width), Randomx.GetId(0, image.Height), Randomx.GetId(0, image.Width), Randomx.GetId(0, image.Height));
|
||||
//pen = new Pen(Color.Green);
|
||||
//g.DrawLine(pen, Randomx.GetId(0, image.Width), Randomx.GetId(0, image.Height), Randomx.GetId(0, image.Width), Randomx.GetId(0, image.Height));
|
||||
////var imageUp = pbUpgradeVersion.Image;
|
||||
////// 将升级版图片绘制到sku图片上
|
||||
////g.DrawImage(imageUp, new Rectangle(0, 0, image.Width, image.Height), 0, 0, imageUp.Width, imageUp.Height, GraphicsUnit.Pixel);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return "修改sku图片失败 " + ex.Message;
|
||||
}
|
||||
string uploadUpgradeSkuImgRst = UploadProdSkuImg(shop, imageBg, prodParam.goods_id.ParseToString(), prodParam.goods_commit_id, prodInfo.chance_tab);
|
||||
if (!uploadUpgradeSkuImgRst.Contains("\"url\":\"https:"))
|
||||
{
|
||||
var error = BaseRegex.GetStringJson(ref uploadUpgradeSkuImgRst, "error_msg");
|
||||
if (string.IsNullOrEmpty(error))
|
||||
error = uploadUpgradeSkuImgRst;
|
||||
return "上传升级款sku图片失败 " + error;
|
||||
}
|
||||
else
|
||||
{
|
||||
var upgrid_thumb_url = BaseRegex.GetStringJson(ref uploadUpgradeSkuImgRst, "url");
|
||||
new_Sku_Img_Dic[skuParam.thumb_url] = upgrid_thumb_url;
|
||||
}
|
||||
}
|
||||
skuParam.thumb_url = new_Sku_Img_Dic[skuParam.thumb_url];
|
||||
skuParam.thumb_url_file_id = null;
|
||||
}
|
||||
|
||||
baseSkuParamLst.Add(skuParam);
|
||||
}
|
||||
|
||||
@@ -1787,6 +1867,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
prodParam.market_price = skuParam.price + 1000;
|
||||
prodParam.market_price_in_yuan = (prodParam.market_price * 0.01).ParseToString();
|
||||
}
|
||||
|
||||
prodParam.skus.Add(skuParam);
|
||||
}
|
||||
|
||||
@@ -1957,7 +2038,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
prodParam.song_huo_ru_hu = prodInfo.detail.song_huo_ru_hu;
|
||||
prodParam.spu = new object();
|
||||
prodParam.tag_price_gallery = new List<object>();
|
||||
prodParam.thawed_refund = prodInfo.detail.thawed_refund;
|
||||
prodParam.thawed_refund = prodInfo.detail.thawed_refund.ParseToInt();
|
||||
prodParam.third_type = prodInfo.detail.third_type;
|
||||
prodParam.tiny_name = prodInfo.detail.tiny_name;
|
||||
prodParam.transport_type_list = prodInfo.detail.transport_type_list == null ? new List<object>() : prodInfo.detail.transport_type_list as List<object>;
|
||||
@@ -1965,7 +2046,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
prodParam.uploadDragAB = false;
|
||||
prodParam.warehouse = prodInfo.detail.warehouse;
|
||||
prodParam.warm_tips = prodInfo.detail.warm_tips;
|
||||
prodParam.weight = "";
|
||||
prodParam.weight = 1;
|
||||
prodParam.zhi_huan_bu_xiu = prodInfo.detail.zhi_huan_bu_xiu;
|
||||
|
||||
prodParam.validate_message = "dd3837f48ccafb7c9b410fc4a650d20a8d0c7bf4602a7d808b757f4642be0647";//加密信息,暂时写死不影响上传
|
||||
@@ -2570,6 +2651,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
{
|
||||
prodParam.decorationPreview = BaseRegex.GetStringJson(ref decoration_preview_html, "preview_url");
|
||||
prodParamHighPriceFakeSkuImg.decorationPreview = prodParam.decorationPreview;
|
||||
prodParamHighPrice.decorationPreview = prodParam.decorationPreview;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2718,10 +2800,42 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
}
|
||||
}
|
||||
|
||||
string activityErr = SignActivity(shop, prodParam, sign22347, sign20981, sign23165, sign15996);
|
||||
PDDShopLoginForm loginForm = null;
|
||||
if (pddUploadRule.IsSignActivity)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
//this.panel1.SendToBack();
|
||||
this.panel1.BringToFront();
|
||||
loginForm = new PDDShopLoginForm(shop);
|
||||
loginForm.TopLevel = false;
|
||||
loginForm.openType = EnumOpenType.manage;
|
||||
loginForm.WindowState = FormWindowState.Maximized;
|
||||
loginForm.InitUrl = "https://mms.pinduoduo.com";
|
||||
loginForm.Dock = DockStyle.Fill;
|
||||
this.panel1.Controls.Add(loginForm);
|
||||
loginForm.Show();
|
||||
}));
|
||||
Thread.Sleep(Randomx.GetId(4000, 10000));
|
||||
if (sign20981)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
loginForm.cefWebBrowser.Load("https://mms.pinduoduo.com/act/multi-act-enroll?activityId=20981&activityType=27&SourceType=PROMO-OwnHome&formInfoSceneType=realBigSaleQuickEnrollMultiActivityScene");
|
||||
}));
|
||||
}
|
||||
Thread.Sleep(Randomx.GetId(4000, 10000));
|
||||
|
||||
Thread.Sleep(Randomx.GetId(6000, 12000));
|
||||
var getProdIdRst = get_prod_commit_id(shop, prodParamHighPrice.goods_id.ParseToString());
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
//if (PDDShopLoginForm.shopLoginInstance != null)
|
||||
// PDDShopLoginForm.shopLoginInstance.Close();
|
||||
if (loginForm != null)
|
||||
loginForm.Close();
|
||||
}));
|
||||
}
|
||||
|
||||
var getProdIdRst = get_prod_commit_id(shop, prodParamHighPrice.goods_id.ParseToString(), false);
|
||||
var newCommitId = BaseRegex.GetStringJson(ref getProdIdRst, "goods_commit_id");
|
||||
prodParamHighPrice.goods_commit_id = newCommitId;
|
||||
if (string.IsNullOrEmpty(newCommitId) || !getProdIdRst.Contains("\"success\":true"))
|
||||
@@ -2747,11 +2861,117 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var sku in prodParamHighPrice.skus)
|
||||
PDDProductDetailInfo dbProdDetailInfo = null;
|
||||
try
|
||||
{
|
||||
sku.quantity_delta = 0;
|
||||
var prod_on_shop_rst = PDDShopBrowserObject.GetPddProdDetailOnShop(shop, prodParamHighPrice.goods_id.ParseToString(), prodParamHighPrice.goods_commit_id);
|
||||
|
||||
var prod_detail_rst = PDDShopBrowserObject.GetPddProdDetail(shop, prodParamHighPrice.goods_id.ParseToString(), prodParamHighPrice.goods_commit_id);
|
||||
|
||||
JObject prod_detail_obj = JObject.Parse(prod_detail_rst);
|
||||
var detail_json = JsonHelper.SerializeObject(prod_detail_obj["result"]);
|
||||
|
||||
dbProdDetailInfo = JsonHelper.DeserializeJsonToObject<PDDProductDetailInfo>(detail_json);
|
||||
if (dbProdDetailInfo == null || detail_json.Length < 10)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
cell.Value = "商品获取失败!商品数据格式获取失败!" + " " + duration.ParseToInt() + "秒";
|
||||
}));
|
||||
return;
|
||||
}
|
||||
}
|
||||
var reSaveProdRst = save_goods_edit(shop, prodParamHighPrice, prodParamHighPrice.goods_id.ParseToString(), prodParamHighPrice.goods_commit_id, isChanceApi, "edit");
|
||||
catch (Exception ex)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
cell.Value = "商品获取失败!商品数据格式获取失败!" + ex.Message + " " + duration.ParseToInt() + "秒";
|
||||
}));
|
||||
return;
|
||||
}
|
||||
|
||||
prodParamHighPrice.check_status = 9;
|
||||
prodParamHighPrice.first_upload_carousel = null;
|
||||
prodParamHighPrice.uploadDragAB = null;
|
||||
prodParamHighPrice.title_keywords = null;
|
||||
prodParamHighPrice.prefillWhitePic = null;
|
||||
prodParamHighPrice.is_shop = 1;
|
||||
prodParamHighPrice.pre_sale_time = "";
|
||||
prodParam.goods_pattern = dbProdDetailInfo.goods_pattern;
|
||||
foreach (var skuParam in prodParamHighPrice.skus)
|
||||
{
|
||||
var skuInfo = dbProdDetailInfo.sku.FirstOrDefault(sk => string.Join(";", sk.spec.Select(s => s.spec_name)) == string.Join(";", skuParam.spec.Select(s => s.spec_name)));
|
||||
if (skuInfo != null)
|
||||
{
|
||||
skuParam.id = skuInfo.id;
|
||||
skuParam.is_onsale = skuInfo.is_onsale;
|
||||
skuParam.limit_quantity = skuInfo.limit_quantity;
|
||||
skuParam.multi_price = skuInfo.multi_price;
|
||||
skuParam.out_sku_sn = skuInfo.out_sku_sn;
|
||||
skuParam.oversea_sku = skuInfo.oversea_sku == null ? new object() : skuInfo.oversea_sku;
|
||||
skuParam.price = skuInfo.price;
|
||||
skuParam.quantity_delta = txtStockNum.Text.Trim().ParseToInt(); // 商品数量
|
||||
skuParam.shipment_limit_second_list = skuInfo.shipment_limit_second_list == null ? new List<object>() : skuInfo.shipment_limit_second_list;
|
||||
skuParam.sku69_code = skuInfo.sku69_code.ParseToString();
|
||||
skuParam.sku_srv_templates = skuInfo.sku_srv_templates.ParseToString();
|
||||
skuParam.spec = JsonHelper.DeserializeJsonToList<spec_param>(JsonHelper.SerializeObject(skuInfo.spec));
|
||||
//skuParam.thumb_url = skuInfo.thumb_url;
|
||||
//skuParam.thumb_url_file_id = skuInfo.thumb_url_file_id;
|
||||
//skuParam.thumb_url_file_id = skuInfo.ref_sku_commit_id;
|
||||
skuParam.weight = skuInfo.weight;
|
||||
skuParam.length = skuInfo.length;
|
||||
skuParam.price_in_yuan = ""; // 内部计算直接置空
|
||||
skuParam.multi_price_in_yuan = ""; // 内部计算直接置空
|
||||
skuParam.pre_sale_time = skuInfo.pre_sale_time;
|
||||
skuParam.sku_id = skuInfo.sku_id;
|
||||
foreach(var spec in skuParam.spec)
|
||||
{
|
||||
spec.is_custom = spec.is_custom.ParseToInt();
|
||||
}
|
||||
}
|
||||
skuParam.quantity_delta = 0;
|
||||
}
|
||||
|
||||
loginForm = null;
|
||||
if (pddUploadRule.IsSignActivity && 1 == 1)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
//this.panel1.SendToBack();
|
||||
this.panel1.BringToFront();
|
||||
loginForm = new PDDShopLoginForm(shop);
|
||||
loginForm.prodParam = prodParamHighPrice;
|
||||
loginForm.TopLevel = false;
|
||||
loginForm.openType = EnumOpenType.manage;
|
||||
loginForm.WindowState = FormWindowState.Maximized;
|
||||
loginForm.InitUrl = "https://mms.pinduoduo.com";
|
||||
loginForm.Dock = DockStyle.Fill;
|
||||
this.panel1.Controls.Add(loginForm);
|
||||
loginForm.Show();
|
||||
loginForm.SetPanelVisible(true);
|
||||
}));
|
||||
Thread.Sleep(Randomx.GetId(3000, 8000));
|
||||
if (sign20981)
|
||||
{
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
loginForm.cefWebBrowser.Load("https://mms.pinduoduo.com/goods/goods_add/index?id=" + prodParamHighPrice.goods_commit_id +
|
||||
"&goods_id=" + prodParamHighPrice.goods_id + "&type=edit");
|
||||
}));
|
||||
}
|
||||
Thread.Sleep(Randomx.GetId(5000, 10000));
|
||||
}
|
||||
while (loginForm != null && loginForm.Created && !loginForm.Disposing && !loginForm.IsDisposed)
|
||||
{
|
||||
Thread.Sleep(Randomx.GetId(500, 1000));
|
||||
}
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
this.panel1.SendToBack();
|
||||
}));
|
||||
|
||||
//var reSaveProdRst = save_goods_edit(shop, prodParamHighPrice, prodParamHighPrice.goods_id.ParseToString(), prodParamHighPrice.goods_commit_id, isChanceApi, "edit");
|
||||
var reSaveProdRst = save_goods_edit(shop, prodParamHighPrice, prodParamHighPrice.goods_id.ParseToString(), prodParamHighPrice.goods_commit_id, false, "edit");
|
||||
if (!reSaveProdRst.Contains("\"success\":true"))
|
||||
{
|
||||
var error = BaseRegex.GetStringJson(ref reSaveProdRst, "error_msg");
|
||||
@@ -2776,6 +2996,7 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
|
||||
Thread.Sleep(Randomx.GetId(20, 100));
|
||||
//var str = JsonHelper.SerializeObject(prodParam);
|
||||
//var reUploadRst = submit_goods_edit(shop, prodParamHighPrice.goods_id.ParseToString(), prodParamHighPrice.goods_commit_id, isChanceApi, "edit");
|
||||
var reUploadRst = submit_goods_edit(shop, prodParamHighPrice.goods_id.ParseToString(), prodParamHighPrice.goods_commit_id, isChanceApi, "edit");
|
||||
if (!reUploadRst.Contains("\"success\":true"))
|
||||
{
|
||||
@@ -2800,6 +3021,15 @@ namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
return;
|
||||
}
|
||||
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if (loginForm != null)
|
||||
loginForm.Close();
|
||||
loginForm = null;
|
||||
}));
|
||||
Thread.Sleep(Randomx.GetId(12000, 15000));
|
||||
string activityErr = SignActivity(shop, prodParam, sign22347, sign20981, sign23165, sign15996);
|
||||
|
||||
//Thread.Sleep(Randomx.GetId(4000, 8000));
|
||||
if (!string.IsNullOrEmpty(activityErr))
|
||||
{
|
||||
@@ -3694,7 +3924,7 @@ Content-Disposition: form-data; name=""pic_operations""
|
||||
/// <param name="shop"></param>
|
||||
/// <param name="prodId"></param>
|
||||
/// <returns></returns>
|
||||
private string get_prod_commit_id(ShopLoginInfo shop, string prodId)
|
||||
private string get_prod_commit_id(ShopLoginInfo shop, string prodId, bool _isChanceApi)
|
||||
{
|
||||
var anti = shop.AntiContents.LastOrDefault().ParseToString();
|
||||
if (shop.AntiContents.Count > 0)
|
||||
@@ -3702,7 +3932,7 @@ Content-Disposition: form-data; name=""pic_operations""
|
||||
string url = "https://mms.pinduoduo.com/glide/v2/mms/edit/commit/create_by_sn";
|
||||
string body = @"{""goods_id"":" + prodId + "}";
|
||||
string refere = "https://mms.pinduoduo.com/goods/goods_list?msfrom=mms_sidenav";
|
||||
if (isChanceApi)
|
||||
if (_isChanceApi)
|
||||
{
|
||||
refere = "https://mms.pinduoduo.com/goods/category?chance_tab=search";
|
||||
}
|
||||
@@ -4195,8 +4425,24 @@ Content-Disposition: form-data; name=""pic_operations""
|
||||
anti = shop.AntiContents[Randomx.GetId(shop.AntiContents.Count)];
|
||||
string url = "https://mms.pinduoduo.com/glide/mms/goodsCommit/action/edit";
|
||||
string body = JsonHelper.SerializeObject(prod);
|
||||
if (type != "add")
|
||||
{
|
||||
body = body.Replace("\"first_upload_carousel\":null,", "");
|
||||
body = body.Replace("\"uploadDragAB\":null,", "");
|
||||
body = body.Replace("\"title_keywords\":null,", "");
|
||||
body = body.Replace("\"title_recommend\":null,", "");
|
||||
body = body.Replace("\"prefillWhitePic\":null,", "");
|
||||
|
||||
body = body.Replace("\"parent_spec_id\":null,", "");
|
||||
body = body.Replace("\"spec_id\":null,", "");
|
||||
body = body.Replace("\"note\":null,", "");
|
||||
body = body.Replace("\"img_url\":null,", "");
|
||||
body = body.Replace("\"group_id\":null,", "");
|
||||
//body = body.Replace("\"vid\":null,", "");
|
||||
}
|
||||
string refere = "https://mms.pinduoduo.com/goods/goods_add/index?type=" + type + "&from=category&id=" + commitId +
|
||||
"&goods_id=" + prodId + "&sourcePage=goodsList";
|
||||
refere = "https://mms.pinduoduo.com/goods/goods_add/index?id="+ commitId + "&goods_id=" + prodId + "&type=edit";
|
||||
if (isChance)
|
||||
{
|
||||
//refere = "https://mms.pinduoduo.com/goods/goods_add/index?type=" + type + "&from=chance&id=" + commitId +
|
||||
@@ -4271,6 +4517,7 @@ Content-Disposition: form-data; name=""pic_operations""
|
||||
|
||||
string refere = "https://mms.pinduoduo.com/goods/goods_add/index?type=" + type + "&from=category&id=" + commitId +
|
||||
"&goods_id=" + prodId + "&sourcePage=goodsList";
|
||||
refere = "https://mms.pinduoduo.com/goods/goods_add/index?id=" + commitId + "&goods_id=" + prodId + "&type=edit";
|
||||
if (isChance)
|
||||
{
|
||||
//refere = "https://mms.pinduoduo.com/goods/goods_add/index?type=" + type + "&from=chance&id=" + commitId +
|
||||
@@ -4511,7 +4758,7 @@ Content-Disposition: form-data; name=""pic_operations""
|
||||
return result;
|
||||
}
|
||||
|
||||
private string GetChanceGoodsId(ShopLoginInfo shop, string searchWord = "头发绳", string chanceId = "fff84ef8fc1b2919a9c3383d350f44cc", string _refere="")
|
||||
public static string GetChanceGoodsId(ShopLoginInfo shop, string searchWord = "头发绳", string chanceId = "fff84ef8fc1b2919a9c3383d350f44cc", string _refere="")
|
||||
{
|
||||
var anti = shop.AntiContents.LastOrDefault().ParseToString();
|
||||
if (shop.AntiContents.Count > 0)
|
||||
@@ -5254,7 +5501,7 @@ Content-Type: image/jpeg
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
BaseMsgForm.ShowError("打开增强版sku叠加图片失败 " + ex.Message);
|
||||
BaseMsgForm.ShowError("打开升级版sku叠加图片失败 " + ex.Message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
{
|
||||
partial class PDDGetChanceProd
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Text = "PDDGetChanceProd";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TemuKJD.PDDForms.ProductSelectForms
|
||||
{
|
||||
public partial class PDDGetChanceProd : Form
|
||||
{
|
||||
public PDDGetChanceProd()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user