微信类目获取
This commit is contained in:
1 parent
c2c4c8da1a
commit
ddc5f6490f
24 files changed
+1082
-268
No files matched your search
+29
-29
@@ -107,7 +107,7 @@ namespace TemuKJD.ToolForms
|
||||
this.tabControl1.Multiline = true;
|
||||
this.tabControl1.Name = "tabControl1";
|
||||
this.tabControl1.SelectedIndex = 0;
|
||||
this.tabControl1.Size = new System.Drawing.Size(1904, 469);
|
||||
this.tabControl1.Size = new System.Drawing.Size(1404, 470);
|
||||
this.tabControl1.TabIndex = 0;
|
||||
//
|
||||
// tabPage1
|
||||
@@ -117,7 +117,7 @@ namespace TemuKJD.ToolForms
|
||||
this.tabPage1.Location = new System.Drawing.Point(4, 28);
|
||||
this.tabPage1.Name = "tabPage1";
|
||||
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tabPage1.Size = new System.Drawing.Size(1896, 437);
|
||||
this.tabPage1.Size = new System.Drawing.Size(1396, 438);
|
||||
this.tabPage1.TabIndex = 0;
|
||||
this.tabPage1.Text = " 商品页面 ";
|
||||
this.tabPage1.UseVisualStyleBackColor = true;
|
||||
@@ -136,7 +136,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(1888, 429);
|
||||
this.splitContainer2.Size = new System.Drawing.Size(1388, 430);
|
||||
this.splitContainer2.SplitterDistance = 26;
|
||||
this.splitContainer2.TabIndex = 6;
|
||||
//
|
||||
@@ -167,7 +167,7 @@ namespace TemuKJD.ToolForms
|
||||
this.txtAddress.Location = new System.Drawing.Point(64, 3);
|
||||
this.txtAddress.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.txtAddress.Name = "txtAddress";
|
||||
this.txtAddress.Size = new System.Drawing.Size(1824, 23);
|
||||
this.txtAddress.Size = new System.Drawing.Size(1324, 23);
|
||||
this.txtAddress.TabIndex = 7;
|
||||
this.txtAddress.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtAddress_KeyDown);
|
||||
//
|
||||
@@ -363,8 +363,8 @@ namespace TemuKJD.ToolForms
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnSaveCookie);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.btnImportCookie);
|
||||
this.splitContainer1.Panel2.Controls.Add(this.label2);
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1904, 561);
|
||||
this.splitContainer1.SplitterDistance = 469;
|
||||
this.splitContainer1.Size = new System.Drawing.Size(1404, 561);
|
||||
this.splitContainer1.SplitterDistance = 470;
|
||||
this.splitContainer1.SplitterWidth = 3;
|
||||
this.splitContainer1.TabIndex = 4;
|
||||
//
|
||||
@@ -446,7 +446,7 @@ namespace TemuKJD.ToolForms
|
||||
this.chkSkip.AutoSize = true;
|
||||
this.chkSkip.Checked = true;
|
||||
this.chkSkip.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.chkSkip.Location = new System.Drawing.Point(1560, 33);
|
||||
this.chkSkip.Location = new System.Drawing.Point(1060, 33);
|
||||
this.chkSkip.Name = "chkSkip";
|
||||
this.chkSkip.Size = new System.Drawing.Size(171, 21);
|
||||
this.chkSkip.TabIndex = 942;
|
||||
@@ -457,7 +457,7 @@ namespace TemuKJD.ToolForms
|
||||
//
|
||||
this.chkOverride.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.chkOverride.AutoSize = true;
|
||||
this.chkOverride.Location = new System.Drawing.Point(1736, 33);
|
||||
this.chkOverride.Location = new System.Drawing.Point(1236, 33);
|
||||
this.chkOverride.Name = "chkOverride";
|
||||
this.chkOverride.Size = new System.Drawing.Size(171, 21);
|
||||
this.chkOverride.TabIndex = 920;
|
||||
@@ -468,7 +468,7 @@ namespace TemuKJD.ToolForms
|
||||
//
|
||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(817, 8);
|
||||
this.label1.Location = new System.Drawing.Point(317, 8);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(32, 17);
|
||||
this.label1.TabIndex = 898;
|
||||
@@ -483,7 +483,7 @@ namespace TemuKJD.ToolForms
|
||||
"抖音",
|
||||
"淘宝",
|
||||
"微信"});
|
||||
this.cmbPlatformType.Location = new System.Drawing.Point(849, 4);
|
||||
this.cmbPlatformType.Location = new System.Drawing.Point(349, 4);
|
||||
this.cmbPlatformType.Name = "cmbPlatformType";
|
||||
this.cmbPlatformType.Size = new System.Drawing.Size(67, 25);
|
||||
this.cmbPlatformType.TabIndex = 897;
|
||||
@@ -497,7 +497,7 @@ namespace TemuKJD.ToolForms
|
||||
this.cmbSaleCount.Items.AddRange(new object[] {
|
||||
"7日销量≥",
|
||||
"30日销量≥"});
|
||||
this.cmbSaleCount.Location = new System.Drawing.Point(1120, 4);
|
||||
this.cmbSaleCount.Location = new System.Drawing.Point(620, 4);
|
||||
this.cmbSaleCount.Name = "cmbSaleCount";
|
||||
this.cmbSaleCount.Size = new System.Drawing.Size(76, 25);
|
||||
this.cmbSaleCount.TabIndex = 875;
|
||||
@@ -511,7 +511,7 @@ namespace TemuKJD.ToolForms
|
||||
this.btnStopStop.CanvasColor = System.Drawing.SystemColors.Control;
|
||||
this.btnStopStop.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
|
||||
this.btnStopStop.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnStopStop.Location = new System.Drawing.Point(1559, 58);
|
||||
this.btnStopStop.Location = new System.Drawing.Point(1059, 58);
|
||||
this.btnStopStop.Name = "btnStopStop";
|
||||
this.btnStopStop.Size = new System.Drawing.Size(83, 23);
|
||||
this.btnStopStop.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -537,7 +537,7 @@ 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(1814, 58);
|
||||
this.btnSaveDb.Location = new System.Drawing.Point(1314, 58);
|
||||
this.btnSaveDb.Name = "btnSaveDb";
|
||||
this.btnSaveDb.Size = new System.Drawing.Size(83, 23);
|
||||
this.btnSaveDb.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -562,7 +562,7 @@ namespace TemuKJD.ToolForms
|
||||
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(1729, 58);
|
||||
this.btnGetDetail.Location = new System.Drawing.Point(1229, 58);
|
||||
this.btnGetDetail.Name = "btnGetDetail";
|
||||
this.btnGetDetail.Size = new System.Drawing.Size(83, 23);
|
||||
this.btnGetDetail.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -585,7 +585,7 @@ 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(817, 60);
|
||||
this.statusBar.Location = new System.Drawing.Point(317, 60);
|
||||
this.statusBar.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.statusBar.Name = "statusBar";
|
||||
this.statusBar.Size = new System.Drawing.Size(740, 25);
|
||||
@@ -595,7 +595,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(1015, 8);
|
||||
this.label4.Location = new System.Drawing.Point(515, 8);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(44, 17);
|
||||
this.label4.TabIndex = 810;
|
||||
@@ -604,7 +604,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(1059, 5);
|
||||
this.txtPageEnd.Location = new System.Drawing.Point(559, 5);
|
||||
this.txtPageEnd.Name = "txtPageEnd";
|
||||
this.txtPageEnd.Size = new System.Drawing.Size(43, 23);
|
||||
this.txtPageEnd.TabIndex = 809;
|
||||
@@ -614,7 +614,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(966, 5);
|
||||
this.txtPageStart.Location = new System.Drawing.Point(466, 5);
|
||||
this.txtPageStart.Name = "txtPageStart";
|
||||
this.txtPageStart.Size = new System.Drawing.Size(43, 23);
|
||||
this.txtPageStart.TabIndex = 808;
|
||||
@@ -625,7 +625,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(922, 8);
|
||||
this.label3.Location = new System.Drawing.Point(422, 8);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(44, 17);
|
||||
this.label3.TabIndex = 807;
|
||||
@@ -638,7 +638,7 @@ namespace TemuKJD.ToolForms
|
||||
this.btnCollect.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnCollect.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnCollect.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnCollect.Location = new System.Drawing.Point(1644, 58);
|
||||
this.btnCollect.Location = new System.Drawing.Point(1144, 58);
|
||||
this.btnCollect.Name = "btnCollect";
|
||||
this.btnCollect.Size = new System.Drawing.Size(83, 23);
|
||||
this.btnCollect.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -660,7 +660,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(796, 7);
|
||||
this.line1.Location = new System.Drawing.Point(296, 7);
|
||||
this.line1.Name = "line1";
|
||||
this.line1.Size = new System.Drawing.Size(25, 74);
|
||||
this.line1.TabIndex = 790;
|
||||
@@ -670,7 +670,7 @@ namespace TemuKJD.ToolForms
|
||||
// txtSupplierName
|
||||
//
|
||||
this.txtSupplierName.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtSupplierName.Location = new System.Drawing.Point(1292, 5);
|
||||
this.txtSupplierName.Location = new System.Drawing.Point(792, 5);
|
||||
this.txtSupplierName.Name = "txtSupplierName";
|
||||
this.txtSupplierName.ReadOnly = true;
|
||||
this.txtSupplierName.Size = new System.Drawing.Size(605, 23);
|
||||
@@ -679,7 +679,7 @@ namespace TemuKJD.ToolForms
|
||||
// txtFilterSaleCount
|
||||
//
|
||||
this.txtFilterSaleCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.txtFilterSaleCount.Location = new System.Drawing.Point(1199, 5);
|
||||
this.txtFilterSaleCount.Location = new System.Drawing.Point(699, 5);
|
||||
this.txtFilterSaleCount.Name = "txtFilterSaleCount";
|
||||
this.txtFilterSaleCount.Size = new System.Drawing.Size(43, 23);
|
||||
this.txtFilterSaleCount.TabIndex = 787;
|
||||
@@ -693,7 +693,7 @@ namespace TemuKJD.ToolForms
|
||||
this.btnRefreshCookie.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnRefreshCookie.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnRefreshCookie.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnRefreshCookie.Location = new System.Drawing.Point(671, 57);
|
||||
this.btnRefreshCookie.Location = new System.Drawing.Point(171, 57);
|
||||
this.btnRefreshCookie.Name = "btnRefreshCookie";
|
||||
this.btnRefreshCookie.Size = new System.Drawing.Size(125, 25);
|
||||
this.btnRefreshCookie.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -719,7 +719,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(664, 78);
|
||||
this.txtCookie.Size = new System.Drawing.Size(164, 78);
|
||||
this.txtCookie.TabIndex = 766;
|
||||
this.txtCookie.Text = "填写cookie后点击导入cookie并刷新";
|
||||
//
|
||||
@@ -730,7 +730,7 @@ namespace TemuKJD.ToolForms
|
||||
this.btnSaveCookie.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.btnSaveCookie.DisabledBackColor = System.Drawing.Color.Empty;
|
||||
this.btnSaveCookie.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.btnSaveCookie.Location = new System.Drawing.Point(671, 30);
|
||||
this.btnSaveCookie.Location = new System.Drawing.Point(171, 30);
|
||||
this.btnSaveCookie.Name = "btnSaveCookie";
|
||||
this.btnSaveCookie.Size = new System.Drawing.Size(125, 25);
|
||||
this.btnSaveCookie.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -755,7 +755,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(671, 3);
|
||||
this.btnImportCookie.Location = new System.Drawing.Point(171, 3);
|
||||
this.btnImportCookie.Name = "btnImportCookie";
|
||||
this.btnImportCookie.Size = new System.Drawing.Size(125, 25);
|
||||
this.btnImportCookie.Style.Alignment = System.Drawing.StringAlignment.Center;
|
||||
@@ -777,7 +777,7 @@ namespace TemuKJD.ToolForms
|
||||
//
|
||||
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(1248, 8);
|
||||
this.label2.Location = new System.Drawing.Point(748, 8);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(44, 17);
|
||||
this.label2.TabIndex = 789;
|
||||
@@ -786,7 +786,7 @@ namespace TemuKJD.ToolForms
|
||||
// GetJuShuitanProdForm
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.ClientSize = new System.Drawing.Size(1904, 561);
|
||||
this.ClientSize = new System.Drawing.Size(1404, 561);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.Name = "GetJuShuitanProdForm";
|
||||
|
||||
@@ -490,13 +490,17 @@ namespace TemuKJD.ToolForms
|
||||
|
||||
private void btnSaveDb_Click(object sender, EventArgs e)
|
||||
{
|
||||
Task.Run(() => { });
|
||||
//"&product_get_type=" + HttpUtility.UrlEncode("厂商直采", Encoding.UTF8);
|
||||
|
||||
ConcurrentList<DataGridViewRow> rowLst = new ConcurrentList<DataGridViewRow>();
|
||||
rowLst.AddRange(dgvProduct.Rows.Cast<DataGridViewRow>().Where(r => r.Cells["colCheck"].Value.ParseToBool() == true));
|
||||
|
||||
if (cancellationTokenSource == null || cancellationTokenSource.IsCancellationRequested)
|
||||
cancellationTokenSource = new CancellationTokenSource();
|
||||
|
||||
this.pbLoading.Visible = true;
|
||||
Task.Run(() =>
|
||||
var t = Task.Run(() =>
|
||||
{
|
||||
List<Cookie> cookieList = CEFBrowser.GetCookieList(".scm121.com", cefWebBrowser.GetCookieManager(null));
|
||||
var shop = new ShopLoginInfo();
|
||||
@@ -572,6 +576,8 @@ namespace TemuKJD.ToolForms
|
||||
"&product_name=" + HttpUtility.UrlEncode(prod.dbProduct.product_name, Encoding.UTF8) +
|
||||
"&product_json=" + HttpUtility.UrlEncode(dbProd.product_json, Encoding.UTF8) +
|
||||
"&size_json=" + HttpUtility.UrlEncode(dbProd.size_json, Encoding.UTF8) +
|
||||
"&sale_count=" + dbProd.sale_count +
|
||||
"&sale_count_text=" + HttpUtility.UrlEncode(dbProd.sale_count_text, Encoding.UTF8) +
|
||||
"&main_img=" + HttpUtility.UrlEncode(dbProd.main_img, Encoding.UTF8) +
|
||||
"&product_get_type=" + HttpUtility.UrlEncode("厂商直采", Encoding.UTF8);
|
||||
if (SetPartnerSpuRst.Contains("\"success\":true"))
|
||||
@@ -730,7 +736,8 @@ namespace TemuKJD.ToolForms
|
||||
var jObj = JsonHelper.JObjectParse(getDetailRst)["data"];
|
||||
prod.dbProduct.cat_id = jObj["catId"].ParseToString();
|
||||
prod.dbProduct.main_cat_id = jObj["categoryData"].FirstOrDefault().ParseToString();
|
||||
prod.dbProduct.product_json = "{\"pddData\":" + JsonHelper.SerializeObject(jObj) + ",\"jstProd\":" + prod.jstProductJson + "}";
|
||||
var prodDataJson = JsonHelper.SerializeObject(jObj);
|
||||
prod.dbProduct.product_json = "{\"pddData\":" + prodDataJson + ",\"jstProd\":" + prod.jstProductJson + "}";
|
||||
var priceMin = jObj["skuInfo"]["goodsSkuDetail"].Min(s => s["supplyPrice"].ParseToDecimal());
|
||||
var priceMax = jObj["skuInfo"]["goodsSkuDetail"].Max(s => s["supplyPrice"].ParseToDecimal());
|
||||
prod.dbProduct.price_text = priceMin + "-" + priceMax;
|
||||
|
||||
Reference in new issue
Block a user