用户产品数据库
用户1688采集
This commit is contained in:
1 parent
025b33b478
commit
c3ecb84a1e
25 files changed
+2050
-975
No files matched your search
+100
-71
@@ -98,8 +98,6 @@ namespace TemuKJD.ToolForms
|
||||
this.tabPage4 = new System.Windows.Forms.TabPage();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.dgvOut1688Prod = new TemuKJD.UserComponent.DataGridViewEx();
|
||||
this.chkSkip = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.btnGetDetail = new DevComponents.DotNetBar.PanelEx();
|
||||
this.dataGridViewCheckBoxColumn1 = new System.Windows.Forms.DataGridViewCheckBoxColumn();
|
||||
this.colFileName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.colOutSupplierId = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
@@ -113,6 +111,9 @@ namespace TemuKJD.ToolForms
|
||||
this.colOutStock = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.dataGridViewLinkColumn1 = new System.Windows.Forms.DataGridViewLinkColumn();
|
||||
this.colOutMsg = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||
this.btnOutProdSaveDb = new DevComponents.DotNetBar.PanelEx();
|
||||
this.chkSkip = new TemuKJD.UserComponent.UcCheckBox(this.components);
|
||||
this.btnGetDetail = new DevComponents.DotNetBar.PanelEx();
|
||||
this.pnlMultiLogin.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
@@ -136,7 +137,7 @@ namespace TemuKJD.ToolForms
|
||||
//
|
||||
this.line1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.line1.ForeColor = System.Drawing.SystemColors.AppWorkspace;
|
||||
this.line1.Location = new System.Drawing.Point(298, 7);
|
||||
this.line1.Location = new System.Drawing.Point(256, 7);
|
||||
this.line1.Name = "line1";
|
||||
this.line1.Size = new System.Drawing.Size(20, 74);
|
||||
this.line1.TabIndex = 790;
|
||||
@@ -160,7 +161,7 @@ namespace TemuKJD.ToolForms
|
||||
this.btnImportCookie.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnImportCookie.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnImportCookie.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnImportCookie.Location = new System.Drawing.Point(153, 3);
|
||||
this.btnImportCookie.Location = new System.Drawing.Point(111, 3);
|
||||
this.btnImportCookie.Name = "btnImportCookie";
|
||||
this.btnImportCookie.Size = new System.Drawing.Size(146, 25);
|
||||
this.btnImportCookie.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -184,7 +185,7 @@ namespace TemuKJD.ToolForms
|
||||
this.btnSaveCookie.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnSaveCookie.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSaveCookie.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSaveCookie.Location = new System.Drawing.Point(153, 30);
|
||||
this.btnSaveCookie.Location = new System.Drawing.Point(111, 30);
|
||||
this.btnSaveCookie.Name = "btnSaveCookie";
|
||||
this.btnSaveCookie.Size = new System.Drawing.Size(146, 25);
|
||||
this.btnSaveCookie.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -210,7 +211,7 @@ namespace TemuKJD.ToolForms
|
||||
this.txtCookie.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.txtCookie.Multiline = true;
|
||||
this.txtCookie.Name = "txtCookie";
|
||||
this.txtCookie.Size = new System.Drawing.Size(145, 78);
|
||||
this.txtCookie.Size = new System.Drawing.Size(105, 78);
|
||||
this.txtCookie.TabIndex = 766;
|
||||
this.txtCookie.Text = "填写cookie后点击导入cookie并刷新";
|
||||
//
|
||||
@@ -227,7 +228,7 @@ namespace TemuKJD.ToolForms
|
||||
//
|
||||
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(324, 8);
|
||||
this.label3.Location = new System.Drawing.Point(269, 8);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(44, 17);
|
||||
this.label3.TabIndex = 807;
|
||||
@@ -236,7 +237,7 @@ namespace TemuKJD.ToolForms
|
||||
// txtPageStart
|
||||
//
|
||||
this.txtPageStart.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtPageStart.Location = new System.Drawing.Point(368, 5);
|
||||
this.txtPageStart.Location = new System.Drawing.Point(313, 5);
|
||||
this.txtPageStart.Name = "txtPageStart";
|
||||
this.txtPageStart.Size = new System.Drawing.Size(43, 23);
|
||||
this.txtPageStart.TabIndex = 808;
|
||||
@@ -246,7 +247,7 @@ namespace TemuKJD.ToolForms
|
||||
// txtPageEnd
|
||||
//
|
||||
this.txtPageEnd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtPageEnd.Location = new System.Drawing.Point(461, 5);
|
||||
this.txtPageEnd.Location = new System.Drawing.Point(406, 5);
|
||||
this.txtPageEnd.Name = "txtPageEnd";
|
||||
this.txtPageEnd.Size = new System.Drawing.Size(43, 23);
|
||||
this.txtPageEnd.TabIndex = 809;
|
||||
@@ -257,7 +258,7 @@ namespace TemuKJD.ToolForms
|
||||
//
|
||||
this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(417, 8);
|
||||
this.label4.Location = new System.Drawing.Point(362, 8);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(44, 17);
|
||||
this.label4.TabIndex = 810;
|
||||
@@ -268,10 +269,10 @@ namespace TemuKJD.ToolForms
|
||||
this.statusBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.statusBar.BackColor = System.Drawing.Color.White;
|
||||
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(315, 60);
|
||||
this.statusBar.Location = new System.Drawing.Point(267, 60);
|
||||
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.statusBar.Name = "statusBar";
|
||||
this.statusBar.Size = new System.Drawing.Size(689, 25);
|
||||
this.statusBar.Size = new System.Drawing.Size(686, 25);
|
||||
this.statusBar.TabIndex = 823;
|
||||
//
|
||||
// btnSaveDb
|
||||
@@ -281,9 +282,9 @@ namespace TemuKJD.ToolForms
|
||||
this.btnSaveDb.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSaveDb.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSaveDb.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSaveDb.Location = new System.Drawing.Point(1221, 58);
|
||||
this.btnSaveDb.Location = new System.Drawing.Point(1227, 58);
|
||||
this.btnSaveDb.Name = "btnSaveDb";
|
||||
this.btnSaveDb.Size = new System.Drawing.Size(86, 23);
|
||||
this.btnSaveDb.Size = new System.Drawing.Size(82, 23);
|
||||
this.btnSaveDb.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnSaveDb.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnSaveDb.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -296,7 +297,7 @@ namespace TemuKJD.ToolForms
|
||||
this.btnSaveDb.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSaveDb.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnSaveDb.TabIndex = 831;
|
||||
this.btnSaveDb.Text = "商品入库";
|
||||
this.btnSaveDb.Text = "采集商品入库";
|
||||
this.btnSaveDb.Click += new System.EventHandler(this.btnSaveDb_Click);
|
||||
//
|
||||
// btnStopStop
|
||||
@@ -342,7 +343,7 @@ namespace TemuKJD.ToolForms
|
||||
this.btnSearchTitle.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSearchTitle.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSearchTitle.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSearchTitle.Location = new System.Drawing.Point(523, 33);
|
||||
this.btnSearchTitle.Location = new System.Drawing.Point(475, 33);
|
||||
this.btnSearchTitle.Name = "btnSearchTitle";
|
||||
this.btnSearchTitle.Size = new System.Drawing.Size(56, 23);
|
||||
this.btnSearchTitle.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -363,7 +364,7 @@ namespace TemuKJD.ToolForms
|
||||
// txtTitle
|
||||
//
|
||||
this.txtTitle.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtTitle.Location = new System.Drawing.Point(319, 33);
|
||||
this.txtTitle.Location = new System.Drawing.Point(271, 33);
|
||||
this.txtTitle.Name = "txtTitle";
|
||||
this.txtTitle.Size = new System.Drawing.Size(202, 23);
|
||||
this.txtTitle.TabIndex = 968;
|
||||
@@ -375,7 +376,7 @@ namespace TemuKJD.ToolForms
|
||||
this.btnCancelSelect.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnCancelSelect.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnCancelSelect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnCancelSelect.Location = new System.Drawing.Point(581, 33);
|
||||
this.btnCancelSelect.Location = new System.Drawing.Point(533, 33);
|
||||
this.btnCancelSelect.Name = "btnCancelSelect";
|
||||
this.btnCancelSelect.Size = new System.Drawing.Size(115, 23);
|
||||
this.btnCancelSelect.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -400,9 +401,9 @@ namespace TemuKJD.ToolForms
|
||||
this.btnGetGoods.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnGetGoods.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnGetGoods.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnGetGoods.Location = new System.Drawing.Point(1041, 58);
|
||||
this.btnGetGoods.Location = new System.Drawing.Point(1059, 58);
|
||||
this.btnGetGoods.Name = "btnGetGoods";
|
||||
this.btnGetGoods.Size = new System.Drawing.Size(86, 23);
|
||||
this.btnGetGoods.Size = new System.Drawing.Size(82, 23);
|
||||
this.btnGetGoods.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnGetGoods.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnGetGoods.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
@@ -458,7 +459,7 @@ namespace TemuKJD.ToolForms
|
||||
this.btnExportCookie.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnExportCookie.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnExportCookie.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnExportCookie.Location = new System.Drawing.Point(153, 57);
|
||||
this.btnExportCookie.Location = new System.Drawing.Point(111, 57);
|
||||
this.btnExportCookie.Name = "btnExportCookie";
|
||||
this.btnExportCookie.Size = new System.Drawing.Size(146, 25);
|
||||
this.btnExportCookie.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -566,6 +567,7 @@ namespace TemuKJD.ToolForms
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
this.splitContainer1.Panel2.BackColor = System.Drawing.Color.White;
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnOutProdSaveDb);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.chkSkip);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnGetDetail);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnStopStop);
|
||||
@@ -591,7 +593,7 @@ namespace TemuKJD.ToolForms
|
||||
this.splitContainer1.Panel2.Controls.Add(this.label2);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.line1);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1404, 561);
|
||||
this.splitContainer1.SplitterDistance = 469;
|
||||
this.splitContainer1.SplitterDistance = 462;
|
||||
this.splitContainer1.SplitterWidth = 3;
|
||||
this.splitContainer1.TabIndex = 4;
|
||||
//
|
||||
@@ -609,7 +611,7 @@ namespace TemuKJD.ToolForms
|
||||
this.ucTabControlMetro1.Name = "ucTabControlMetro1";
|
||||
this.ucTabControlMetro1.SelectedIndex = 0;
|
||||
this.ucTabControlMetro1.ShowCloseButton = false;
|
||||
this.ucTabControlMetro1.Size = new System.Drawing.Size(1404, 469);
|
||||
this.ucTabControlMetro1.Size = new System.Drawing.Size(1404, 462);
|
||||
this.ucTabControlMetro1.TabIndex = 462;
|
||||
this.ucTabControlMetro1.TabSelectColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.ucTabControlMetro1.TabSelectTextColor = System.Drawing.Color.Gray;
|
||||
@@ -623,7 +625,7 @@ namespace TemuKJD.ToolForms
|
||||
this.tabPage1.Margin = new System.Windows.Forms.Padding(5);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(1396, 437);
|
||||
this.tabPage1.Size = new System.Drawing.Size(1396, 430);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = "商品页面";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
@@ -642,7 +644,7 @@ namespace TemuKJD.ToolForms
|
||||
this.splitContainer2.Panel1.Controls.Add(this.btnNext);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.btnPrev);
|
||||
this.splitContainer2.Panel1.Controls.Add(this.txtAddress);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1390, 431);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1390, 424);
|
||||
this.splitContainer2.SplitterDistance = 26;
|
||||
this.splitContainer2.TabIndex = 6;
|
||||
//
|
||||
@@ -684,7 +686,7 @@ namespace TemuKJD.ToolForms
|
||||
this.tabPage2.Location = new System.Drawing.Point(4, 28);
|
||||
this.tabPage2.Name = "tabPage2";
|
||||
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage2.Size = new System.Drawing.Size(1396, 436);
|
||||
this.tabPage2.Size = new System.Drawing.Size(1396, 443);
|
||||
this.tabPage2.TabIndex = 1;
|
||||
this.tabPage2.Text = "采集商品列表";
|
||||
this.tabPage2.UseVisualStyleBackColor = true;
|
||||
@@ -693,7 +695,7 @@ namespace TemuKJD.ToolForms
|
||||
//
|
||||
this.pbLoading.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.pbLoading.Image = global::TemuKJD.Properties.Resources.loading_blue;
|
||||
this.pbLoading.Location = new System.Drawing.Point(673, 191);
|
||||
this.pbLoading.Location = new System.Drawing.Point(673, 194);
|
||||
this.pbLoading.Name = "pbLoading";
|
||||
this.pbLoading.Size = new System.Drawing.Size(50, 50);
|
||||
this.pbLoading.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
||||
@@ -744,7 +746,7 @@ namespace TemuKJD.ToolForms
|
||||
this.dgvProduct.Name = "dgvProduct";
|
||||
this.dgvProduct.ReadOnly = true;
|
||||
this.dgvProduct.RowTemplate.Height = 23;
|
||||
this.dgvProduct.Size = new System.Drawing.Size(1390, 430);
|
||||
this.dgvProduct.Size = new System.Drawing.Size(1390, 437);
|
||||
this.dgvProduct.TabIndex = 7;
|
||||
this.dgvProduct.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvProduct_CellContentClick);
|
||||
//
|
||||
@@ -886,7 +888,7 @@ namespace TemuKJD.ToolForms
|
||||
this.tabPage3.Location = new System.Drawing.Point(4, 28);
|
||||
this.tabPage3.Name = "tabPage3";
|
||||
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage3.Size = new System.Drawing.Size(1396, 436);
|
||||
this.tabPage3.Size = new System.Drawing.Size(1396, 443);
|
||||
this.tabPage3.TabIndex = 2;
|
||||
this.tabPage3.Text = "1688地址管理";
|
||||
this.tabPage3.UseVisualStyleBackColor = true;
|
||||
@@ -896,7 +898,7 @@ namespace TemuKJD.ToolForms
|
||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel1.Location = new System.Drawing.Point(3, 3);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(1390, 430);
|
||||
this.panel1.Size = new System.Drawing.Size(1390, 437);
|
||||
this.panel1.TabIndex = 0;
|
||||
//
|
||||
// tabPage4
|
||||
@@ -905,7 +907,7 @@ namespace TemuKJD.ToolForms
|
||||
this.tabPage4.Location = new System.Drawing.Point(4, 28);
|
||||
this.tabPage4.Name = "tabPage4";
|
||||
this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage4.Size = new System.Drawing.Size(1396, 437);
|
||||
this.tabPage4.Size = new System.Drawing.Size(1396, 443);
|
||||
this.tabPage4.TabIndex = 3;
|
||||
this.tabPage4.Text = "1688外部数据";
|
||||
this.tabPage4.UseVisualStyleBackColor = true;
|
||||
@@ -916,7 +918,7 @@ namespace TemuKJD.ToolForms
|
||||
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.panel2.Location = new System.Drawing.Point(3, 3);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(1390, 431);
|
||||
this.panel2.Size = new System.Drawing.Size(1390, 437);
|
||||
this.panel2.TabIndex = 1;
|
||||
//
|
||||
// dgvOut1688Prod
|
||||
@@ -958,47 +960,9 @@ namespace TemuKJD.ToolForms
|
||||
this.dgvOut1688Prod.Name = "dgvOut1688Prod";
|
||||
this.dgvOut1688Prod.ReadOnly = true;
|
||||
this.dgvOut1688Prod.RowTemplate.Height = 23;
|
||||
this.dgvOut1688Prod.Size = new System.Drawing.Size(1390, 431);
|
||||
this.dgvOut1688Prod.Size = new System.Drawing.Size(1390, 437);
|
||||
this.dgvOut1688Prod.TabIndex = 839;
|
||||
//
|
||||
// chkSkip
|
||||
//
|
||||
this.chkSkip.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkSkip.AutoSize = true;
|
||||
this.chkSkip.Checked = true;
|
||||
this.chkSkip.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkSkip.Location = new System.Drawing.Point(1055, 33);
|
||||
this.chkSkip.Name = "chkSkip";
|
||||
this.chkSkip.Size = new System.Drawing.Size(171, 21);
|
||||
this.chkSkip.TabIndex = 1119;
|
||||
this.chkSkip.Text = "采集时跳过库中已存在商品";
|
||||
this.chkSkip.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnGetDetail
|
||||
//
|
||||
this.btnGetDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnGetDetail.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnGetDetail.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnGetDetail.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnGetDetail.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnGetDetail.Location = new System.Drawing.Point(1131, 58);
|
||||
this.btnGetDetail.Name = "btnGetDetail";
|
||||
this.btnGetDetail.Size = new System.Drawing.Size(86, 23);
|
||||
this.btnGetDetail.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnGetDetail.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnGetDetail.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnGetDetail.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnGetDetail.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnGetDetail.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnGetDetail.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnGetDetail.Style.GradientAngle = 90;
|
||||
this.btnGetDetail.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnGetDetail.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnGetDetail.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnGetDetail.TabIndex = 1091;
|
||||
this.btnGetDetail.Text = "采集商品详情";
|
||||
this.btnGetDetail.Click += new System.EventHandler(this.btnGetDetail_Click);
|
||||
//
|
||||
// dataGridViewCheckBoxColumn1
|
||||
//
|
||||
this.dataGridViewCheckBoxColumn1.FillWeight = 26F;
|
||||
@@ -1104,6 +1068,70 @@ namespace TemuKJD.ToolForms
|
||||
this.colOutMsg.Name = "colOutMsg";
|
||||
this.colOutMsg.ReadOnly = true;
|
||||
//
|
||||
// btnOutProdSaveDb
|
||||
//
|
||||
this.btnOutProdSaveDb.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnOutProdSaveDb.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnOutProdSaveDb.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnOutProdSaveDb.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnOutProdSaveDb.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnOutProdSaveDb.Location = new System.Drawing.Point(956, 58);
|
||||
this.btnOutProdSaveDb.Name = "btnOutProdSaveDb";
|
||||
this.btnOutProdSaveDb.Size = new System.Drawing.Size(82, 23);
|
||||
this.btnOutProdSaveDb.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnOutProdSaveDb.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnOutProdSaveDb.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnOutProdSaveDb.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnOutProdSaveDb.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnOutProdSaveDb.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnOutProdSaveDb.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnOutProdSaveDb.Style.GradientAngle = 90;
|
||||
this.btnOutProdSaveDb.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnOutProdSaveDb.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnOutProdSaveDb.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnOutProdSaveDb.TabIndex = 1150;
|
||||
this.btnOutProdSaveDb.Text = "外部商品入库";
|
||||
this.btnOutProdSaveDb.Visible = false;
|
||||
this.btnOutProdSaveDb.Click += new System.EventHandler(this.btnOutProdSaveDb_Click);
|
||||
//
|
||||
// chkSkip
|
||||
//
|
||||
this.chkSkip.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkSkip.AutoSize = true;
|
||||
this.chkSkip.Checked = true;
|
||||
this.chkSkip.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkSkip.Location = new System.Drawing.Point(1055, 33);
|
||||
this.chkSkip.Name = "chkSkip";
|
||||
this.chkSkip.Size = new System.Drawing.Size(171, 21);
|
||||
this.chkSkip.TabIndex = 1119;
|
||||
this.chkSkip.Text = "采集时跳过库中已存在商品";
|
||||
this.chkSkip.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// btnGetDetail
|
||||
//
|
||||
this.btnGetDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.btnGetDetail.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnGetDetail.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnGetDetail.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnGetDetail.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnGetDetail.Location = new System.Drawing.Point(1143, 58);
|
||||
this.btnGetDetail.Name = "btnGetDetail";
|
||||
this.btnGetDetail.Size = new System.Drawing.Size(82, 23);
|
||||
this.btnGetDetail.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnGetDetail.Style.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnGetDetail.Style.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(126)))), ((int)(((byte)(255)))));
|
||||
this.btnGetDetail.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
|
||||
this.btnGetDetail.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.Dash;
|
||||
this.btnGetDetail.Style.BorderSide = DevComponents.DotNetBar.eBorderSide.None;
|
||||
this.btnGetDetail.Style.ForeColor.Color = System.Drawing.Color.White;
|
||||
this.btnGetDetail.Style.GradientAngle = 90;
|
||||
this.btnGetDetail.StyleMouseOver.Alignment = System.Drawing.StringAlignment.Center;
|
||||
this.btnGetDetail.StyleMouseOver.BackColor1.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnGetDetail.StyleMouseOver.BackColor2.Color = System.Drawing.Color.FromArgb(((int)(((byte)(25)))), ((int)(((byte)(102)))), ((int)(((byte)(255)))));
|
||||
this.btnGetDetail.TabIndex = 1091;
|
||||
this.btnGetDetail.Text = "采集商品详情";
|
||||
this.btnGetDetail.Click += new System.EventHandler(this.btnGetDetail_Click);
|
||||
//
|
||||
// Get1688ProductForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
@@ -1212,5 +1240,6 @@ namespace TemuKJD.ToolForms
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOutStock;
|
||||
private System.Windows.Forms.DataGridViewLinkColumn dataGridViewLinkColumn1;
|
||||
private System.Windows.Forms.DataGridViewTextBoxColumn colOutMsg;
|
||||
private DevComponents.DotNetBar.PanelEx btnOutProdSaveDb;
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,11 @@ namespace TemuKJD.ToolForms
|
||||
{
|
||||
public partial class Get1688ProductForm : BaseForms.BaseForm
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否是普通商品采集授权用户
|
||||
/// </summary>
|
||||
public bool IsAuthorityUser { get; set; } = false;
|
||||
|
||||
List<CefSharp.Cookie> lst1688cookie = null;
|
||||
public bool isGetProdLst = false;
|
||||
Dictionary<string, string> dicAfterSale = new Dictionary<string, string>();
|
||||
@@ -48,7 +53,7 @@ namespace TemuKJD.ToolForms
|
||||
private string currentGet1688ListParamData = "";
|
||||
private string currentGet1688ListProductData = "";
|
||||
private string appVersion = "";
|
||||
private string currentSupplierId = "";
|
||||
//private string currentSupplierId = "";
|
||||
int getDetailWait = 5;
|
||||
int pageStart = 1;
|
||||
int pageEnd = 9999;
|
||||
@@ -61,6 +66,14 @@ namespace TemuKJD.ToolForms
|
||||
|
||||
private void GetJuShuitanProdForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
if(IsAuthorityUser)
|
||||
{
|
||||
tabPage2.Controls.Add(dgvOut1688Prod);
|
||||
this.ucTabControlMetro1.TabPages.RemoveAt(3);
|
||||
this.ucTabControlMetro1.TabPages.RemoveAt(2);
|
||||
btnOutProdSaveDb.Visible = true;
|
||||
}
|
||||
|
||||
this.splitContainer1.SplitterDistance = 472;
|
||||
this.dgvProduct.AddSelectorColumn("colCheck");
|
||||
this.dgvProduct.AddImgColumn("colImg", "colImgUrl");
|
||||
@@ -300,18 +313,6 @@ namespace TemuKJD.ToolForms
|
||||
List<Cookie> cookieList = CEFBrowser.GetCookieList(".1688.com", cefWebBrowser.GetCookieManager(null));
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("1688_cookies", cookieList);
|
||||
BaseMsgForm.ShowInfo("保存成功");
|
||||
|
||||
//var url = BaseClass.BuildPDDObjString("user/update_scm121_cookie");
|
||||
//var data = UserLogin.GetSignaturex();
|
||||
//data += "&cookie=" + GetHtml.UrlEncodeUtf8(JsonHelper.SerializeObject(cookieList));
|
||||
//var result = GetHtml.PostUtf8(url, data);
|
||||
//if (!result.Contains("\"code\":200"))
|
||||
// result = GetHtml.PostUtf8(url, data);
|
||||
|
||||
//if (result.Contains("\"code\":200"))
|
||||
// BaseMsgForm.ShowInfo("保存成功");
|
||||
//else
|
||||
// BaseMsgForm.ShowInfo("保存失败,请重试");
|
||||
}
|
||||
|
||||
private void btnPrev_Click(object sender, EventArgs e)
|
||||
@@ -410,6 +411,9 @@ namespace TemuKJD.ToolForms
|
||||
}
|
||||
}
|
||||
|
||||
dgvProduct.BringToFront();
|
||||
this.pbLoading.BringToFront();
|
||||
|
||||
this.pbLoading.Visible = true;
|
||||
dgvProduct.Rows.Clear();
|
||||
lst1688OneProductListInfo.Clear();
|
||||
@@ -568,6 +572,9 @@ namespace TemuKJD.ToolForms
|
||||
return;
|
||||
}
|
||||
|
||||
dgvProduct.BringToFront();
|
||||
pbLoading.BringToFront();
|
||||
|
||||
if (cancellationTokenSource != null)
|
||||
cancellationTokenSource.Cancel();
|
||||
cancellationTokenSource = new CancellationTokenSource();
|
||||
@@ -624,6 +631,8 @@ namespace TemuKJD.ToolForms
|
||||
}
|
||||
}
|
||||
Thread.Sleep(Randomx.GetId(500, 1500));
|
||||
if (this.IsAuthorityUser)
|
||||
Thread.Sleep(1000);
|
||||
|
||||
// 采集商品详情
|
||||
currentDetailData = "";
|
||||
@@ -802,12 +811,10 @@ namespace TemuKJD.ToolForms
|
||||
|
||||
private void btnSaveDb_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (btnSaveDb.Text == "商品入库")
|
||||
if (btnSaveDb.Text == "采集商品入库")
|
||||
{
|
||||
//"&product_get_type=" + HttpUtility.UrlEncode("厂商直采", Encoding.UTF8);
|
||||
List<Cookie> cookieList = CEFBrowser.GetCookieList(".scm121.com", cefWebBrowser.GetCookieManager(null));
|
||||
var shop = new ShopLoginInfo();
|
||||
shop.Cookies = JsonHelper.SerializeObject(cookieList);
|
||||
dgvProduct.BringToFront();
|
||||
pbLoading.BringToFront();
|
||||
|
||||
List<DataGridViewRow> rowLst = new List<DataGridViewRow>();
|
||||
rowLst.AddRange(dgvProduct.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colCheck"].Value.ParseToBool() == true));
|
||||
@@ -860,12 +867,19 @@ namespace TemuKJD.ToolForms
|
||||
}
|
||||
|
||||
Thread.Sleep(25);
|
||||
if (this.IsAuthorityUser)
|
||||
Thread.Sleep(1000);
|
||||
if (row.Index % 20 == 0)
|
||||
NaiBa.Util.Helper.ConfigHelper.SaveConfig("1688_product_list_" + MainForm.ProcessCount, lst1688OneProductListInfo);
|
||||
|
||||
// 商品采集权限用户采集的数据加上用户前缀(商品前缀显示给用户的时候隐藏)
|
||||
string collectAuthorityTag = "";
|
||||
if (IsAuthorityUser)
|
||||
collectAuthorityTag = "-" + BaseClass.UserName;
|
||||
|
||||
bool isExist = false;
|
||||
var existUrl = BaseClass.BuildPDDObjString("product/get_product_spu_id_list");
|
||||
string existData = UserLogin.GetSignaturex() + "&search_spu_ids=" + prod.offerId;
|
||||
string existData = UserLogin.GetSignaturex() + "&search_spu_ids=" + prod.offerId + collectAuthorityTag;
|
||||
string html = GetHtml.PostUtf8(existUrl, existData);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
html = GetHtml.PostUtf8(existUrl, existData);
|
||||
@@ -909,7 +923,7 @@ namespace TemuKJD.ToolForms
|
||||
"&from_shop_name=" + prod.dbProduct.from_shop_name +
|
||||
//"&offline_supplier_id=" + prod.dbProduct.offline_supplier_id +
|
||||
//"&offline_supplier_name=" + prod.dbProduct.offline_supplier_name +
|
||||
"&spu_id=" + prod.dbProduct.spu_id.ParseToString() +
|
||||
"&spu_id=" + prod.dbProduct.spu_id.ParseToString() + collectAuthorityTag +
|
||||
"&skc_id=" + prod.dbProduct.skc_id.ParseToString() +
|
||||
"&price_text=" + prod.dbProduct.price_text +
|
||||
"&ext_code=" + HttpUtility.UrlEncode(prod.dbProduct.ext_code, Encoding.UTF8) +
|
||||
@@ -920,7 +934,12 @@ namespace TemuKJD.ToolForms
|
||||
"&sale_count_text=" + HttpUtility.UrlEncode(dbProd.sale_count_text, Encoding.UTF8) +
|
||||
"&main_img=" + HttpUtility.UrlEncode(dbProd.main_img, Encoding.UTF8) +
|
||||
"&wx_safe_status=" + HttpUtility.UrlEncode("未校验", Encoding.UTF8) +
|
||||
"&product_get_type=" + HttpUtility.UrlEncode("1688厂家", Encoding.UTF8);
|
||||
"&product_get_type=" + HttpUtility.UrlEncode("1688厂家", Encoding.UTF8);
|
||||
if (IsAuthorityUser)
|
||||
{
|
||||
data += "&add_user_name=" + BaseClass.UserName;
|
||||
data += "&group=用户" + BaseClass.UserName;
|
||||
}
|
||||
if (!isExist)
|
||||
{
|
||||
data += "&main_cat_id=" + prod.dbProduct.main_cat_id +
|
||||
@@ -1090,7 +1109,7 @@ namespace TemuKJD.ToolForms
|
||||
|
||||
private void btnExportCookie_Click(object sender, EventArgs e)
|
||||
{
|
||||
List<Cookie> cookieList = CEFBrowser.GetCookieList(".scm121.com", cefWebBrowser.GetCookieManager(null));
|
||||
List<Cookie> cookieList = CEFBrowser.GetCookieList(".1688.com", cefWebBrowser.GetCookieManager(null));
|
||||
var shop = new ShopLoginInfo();
|
||||
shop.Cookies = JsonHelper.SerializeObject(cookieList);
|
||||
|
||||
@@ -1100,23 +1119,23 @@ namespace TemuKJD.ToolForms
|
||||
cooks = new List<CefSharp.Cookie>();
|
||||
|
||||
string cookJs = "";
|
||||
var keys = new string[] { "acw_tc", "DISTRYBUTION_TOKEN" };
|
||||
//var keys = new string[] { "acw_tc", "DISTRYBUTION_TOKEN" };
|
||||
//foreach (var shopCook in cooks)
|
||||
//{
|
||||
// var cookie = shopCook.Name + "=" + shopCook.Value;
|
||||
// if (!keys.Any(k => cookie.StartsWith(k)))
|
||||
// continue;
|
||||
// cookJs += "\r\ndocument.cookie='" + cookie.Substring(0, Math.Max(0, cookie.IndexOf("="))) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';";
|
||||
//}
|
||||
foreach (var shopCook in cooks)
|
||||
{
|
||||
var cookie = shopCook.Name + "=" + shopCook.Value;
|
||||
if (!keys.Any(k => cookie.StartsWith(k)))
|
||||
continue;
|
||||
cookJs += "\r\ndocument.cookie='" + cookie.Substring(0, Math.Max(0, cookie.IndexOf("="))) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;';";
|
||||
}
|
||||
foreach (var shopCook in cooks)
|
||||
{
|
||||
var cookie = shopCook.Name + "=" + shopCook.Value;
|
||||
if (!keys.Any(k => cookie.StartsWith(k)))
|
||||
continue;
|
||||
cookJs += "\r\ndocument.cookie='" + cookie + "; domain=.scm121.com; expires=" +
|
||||
//if (!keys.Any(k => cookie.StartsWith(k)))
|
||||
// continue;
|
||||
cookJs += "\r\ndocument.cookie='" + cookie + "; domain=.1688.com; expires=" +
|
||||
DateTime.Now.AddMonths(1).ToUniversalTime().ToString("ddd, dd MMM yyyy HH:mm:ss 'UTC'", new DateTimeFormatInfo()) + "; path=/';";
|
||||
}
|
||||
cookJs += "\r\nsetTimeout(() => { window.location.href='https://sc.scm121.com/suppliersManage/suppliersList/onlineSuppliers'; }, 200)";
|
||||
cookJs += "\r\nsetTimeout(() => { window.location.href='" + InitUrl + "'; }, 200)";
|
||||
Clipboard.SetDataObject(cookJs);
|
||||
BaseMsgForm.ShowInfo("复制成功");
|
||||
}
|
||||
@@ -1138,7 +1157,7 @@ namespace TemuKJD.ToolForms
|
||||
}
|
||||
else
|
||||
{
|
||||
btnSaveDb.Text = "商品入库";
|
||||
btnSaveDb.Text = "采集商品入库";
|
||||
btnGetDetail.Visible = true;
|
||||
btnGetGoods.Visible = true;
|
||||
}
|
||||
@@ -1153,6 +1172,9 @@ namespace TemuKJD.ToolForms
|
||||
// 显示对话框并获取结果
|
||||
if (openFileDialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
dgvOut1688Prod.BringToFront();
|
||||
pbLoading.BringToFront();
|
||||
|
||||
var filePathLst = openFileDialog.FileNames.ToList();
|
||||
dgvOut1688Prod.Rows.Clear();
|
||||
pbLoading.Visible = true;
|
||||
@@ -1174,6 +1196,8 @@ namespace TemuKJD.ToolForms
|
||||
}
|
||||
rst = Out1688ProdImportOne(path, content);
|
||||
Thread.Sleep(100);
|
||||
if (this.IsAuthorityUser)
|
||||
Thread.Sleep(1000);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -1230,9 +1254,14 @@ namespace TemuKJD.ToolForms
|
||||
//if (row.Index % 20 == 0)
|
||||
// NaiBa.Util.Helper.ConfigHelper.SaveConfig("1688_product_list_" + MainForm.ProcessCount, lst1688OneProductListInfo);
|
||||
|
||||
// 商品采集权限用户采集的数据加上用户前缀(商品前缀显示给用户的时候隐藏)
|
||||
string collectAuthorityTag = "";
|
||||
if (IsAuthorityUser)
|
||||
collectAuthorityTag = "-" + BaseClass.UserName;
|
||||
|
||||
bool isExist = false;
|
||||
var existUrl = BaseClass.BuildPDDObjString("product/get_product_spu_id_list");
|
||||
string existData = UserLogin.GetSignaturex() + "&search_spu_ids=" + outProd.productId;
|
||||
string existData = UserLogin.GetSignaturex() + "&search_spu_ids=" + outProd.productId + collectAuthorityTag;
|
||||
string html = GetHtml.PostUtf8(existUrl, existData);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
html = GetHtml.PostUtf8(existUrl, existData);
|
||||
@@ -1297,12 +1326,13 @@ namespace TemuKJD.ToolForms
|
||||
//return "起批数量超过1,跳过";
|
||||
}
|
||||
|
||||
string from_shop_id = (string.IsNullOrEmpty(outProd.shopId) ? outProd.shopName : outProd.shopId);
|
||||
var data = Work.UserLogin.GetSignaturex() +
|
||||
"&from_shop_id=" + (string.IsNullOrEmpty(outProd.shopId) ? outProd.shopName : outProd.shopId) +
|
||||
"&from_shop_id=" + from_shop_id +
|
||||
"&from_shop_name=" + outProd.shopName +
|
||||
//"&offline_supplier_id=" + prod.dbProduct.offline_supplier_id +
|
||||
//"&offline_supplier_name=" + prod.dbProduct.offline_supplier_name +
|
||||
"&spu_id=" + prodInfo.detail.goods_id.ParseToString() +
|
||||
"&spu_id=" + prodInfo.detail.goods_id.ParseToString() + collectAuthorityTag +
|
||||
"&skc_id=" + prodInfo.detail.goods_id.ParseToString() +
|
||||
"&price_text=" + priceMin + "-" + priceMax +
|
||||
"&ext_code=" + HttpUtility.UrlEncode(prodInfo.detail.out_goods_sn, Encoding.UTF8) +
|
||||
@@ -1314,6 +1344,11 @@ namespace TemuKJD.ToolForms
|
||||
"&main_img=" + HttpUtility.UrlEncode(prodInfo.detail.image_url, Encoding.UTF8) +
|
||||
"&wx_safe_status=" + HttpUtility.UrlEncode("未校验", Encoding.UTF8) +
|
||||
"&product_get_type=" + HttpUtility.UrlEncode("1688外部数据", Encoding.UTF8);
|
||||
if (IsAuthorityUser)
|
||||
{
|
||||
data += "&add_user_name=" + BaseClass.UserName;
|
||||
data += "&group=用户" + BaseClass.UserName;
|
||||
}
|
||||
if (!isExist)
|
||||
{
|
||||
data += "&main_cat_id=" + "" +
|
||||
@@ -1363,5 +1398,10 @@ namespace TemuKJD.ToolForms
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
private void btnOutProdSaveDb_Click(object sender, EventArgs e)
|
||||
{
|
||||
Out1688ProductImport();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user