From f40d3a1cfcd3f95f40523628824e4c3a165453c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=85=88=E6=A3=AE=E5=90=B4?= <8402134@qq.com>
Date: Thu, 29 Dec 2022 16:52:19 +0800
Subject: [PATCH] =?UTF-8?q?1.=E6=8A=96=E9=9F=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
类库/Api.Framework/Cps/DouyinApiV2.cs | 38 ++--
.../Cps/douyin_form_login.Designer.cs | 192 +++++++++---------
2 files changed, 115 insertions(+), 115 deletions(-)
diff --git a/类库/Api.Framework/Cps/DouyinApiV2.cs b/类库/Api.Framework/Cps/DouyinApiV2.cs
index f2c0d59..3bcf3ce 100644
--- a/类库/Api.Framework/Cps/DouyinApiV2.cs
+++ b/类库/Api.Framework/Cps/DouyinApiV2.cs
@@ -515,10 +515,10 @@ html = {html}");
if (reg.Success)
{
var kl = reg.Groups[1].Value;
- product_id = KouLingAnalysis(kl);
+ // product_id = KouLingAnalysis(kl);
+ product_id = DouyinApiV2.AnalysisCmdToGoodsUrl(kl, out promotion_id);
promotion_id = GetPromotionId(product_id);
- //product_id = DouyinApiV2.AnalysisCmdToGoodsUrl(kl, out promotion_id);
-
+
IsResolved = false;
}
}
@@ -2331,24 +2331,24 @@ html = {html}");
return null;
}
- ///
- /// 官方口令解析
- ///
- /// 口令
- ///
- public string KouLingAnalysis(string command)
- {
- var jToken = SendData("buyin.commonShareCommandParse", new { command = command });
+ /////
+ ///// 官方口令解析
+ /////
+ ///// 口令
+ /////
+ //public string KouLingAnalysis(string command)
+ //{
+ // var jToken = SendData("buyin.commonShareCommandParse", new { command = command });
- if (jToken == null) return null;
+ // if (jToken == null) return null;
- var product_id = jToken["data"]?["common_share_command_parse_info"]?["product_info"]?["product_id"]?.ToString();
- if (product_id != null)
- {
- return Util.ToObj(product_id);
- }
- return string.Empty;
- }
+ // var product_id = jToken["data"]?["common_share_command_parse_info"]?["product_info"]?["product_id"]?.ToString();
+ // if (product_id != null)
+ // {
+ // return product_id;
+ // }
+ // return string.Empty;
+ //}
///
/// 查询商品信息
diff --git a/类库/Api.Framework/Cps/douyin_form_login.Designer.cs b/类库/Api.Framework/Cps/douyin_form_login.Designer.cs
index 9946aec..65394a3 100644
--- a/类库/Api.Framework/Cps/douyin_form_login.Designer.cs
+++ b/类库/Api.Framework/Cps/douyin_form_login.Designer.cs
@@ -34,28 +34,28 @@
this.button1 = new System.Windows.Forms.Button();
this.webControl1 = new EO.WinForm.WebControl();
this.webView1 = new EO.WebBrowser.WebView();
- this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage();
- this.label1 = new System.Windows.Forms.Label();
- this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
- this.memoEdit1 = new DevExpress.XtraEditors.MemoEdit();
this.xtraTabPage3 = new DevExpress.XtraTab.XtraTabPage();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.linkLabel1 = new System.Windows.Forms.LinkLabel();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.simpleButton3 = new DevExpress.XtraEditors.SimpleButton();
this.label2 = new System.Windows.Forms.Label();
this.linkLabel2 = new System.Windows.Forms.LinkLabel();
this.textBox2 = new System.Windows.Forms.TextBox();
+ this.groupBox1 = new System.Windows.Forms.GroupBox();
+ this.linkLabel1 = new System.Windows.Forms.LinkLabel();
+ this.textBox1 = new System.Windows.Forms.TextBox();
+ this.simpleButton2 = new DevExpress.XtraEditors.SimpleButton();
+ this.xtraTabPage2 = new DevExpress.XtraTab.XtraTabPage();
+ this.label1 = new System.Windows.Forms.Label();
+ this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
+ this.memoEdit1 = new DevExpress.XtraEditors.MemoEdit();
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).BeginInit();
this.xtraTabControl1.SuspendLayout();
this.xtraTabPage1.SuspendLayout();
+ this.xtraTabPage3.SuspendLayout();
+ this.groupBox2.SuspendLayout();
+ this.groupBox1.SuspendLayout();
this.xtraTabPage2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).BeginInit();
- this.xtraTabPage3.SuspendLayout();
- this.groupBox1.SuspendLayout();
- this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// xtraTabControl1
@@ -107,42 +107,6 @@
this.webView1.ObjectForScripting = null;
this.webView1.Title = null;
//
- // xtraTabPage2
- //
- this.xtraTabPage2.Controls.Add(this.label1);
- this.xtraTabPage2.Controls.Add(this.simpleButton1);
- this.xtraTabPage2.Controls.Add(this.memoEdit1);
- this.xtraTabPage2.Name = "xtraTabPage2";
- this.xtraTabPage2.Size = new System.Drawing.Size(909, 466);
- this.xtraTabPage2.Text = " 同软件登录码 ";
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.ForeColor = System.Drawing.Color.Blue;
- this.label1.Location = new System.Drawing.Point(247, 373);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(403, 14);
- this.label1.TabIndex = 4;
- this.label1.Text = "注:抖音登录码为相同返利软件联盟列表中选中要复制的抖音右击复制所得";
- //
- // simpleButton1
- //
- this.simpleButton1.Location = new System.Drawing.Point(351, 402);
- this.simpleButton1.Name = "simpleButton1";
- this.simpleButton1.Size = new System.Drawing.Size(194, 41);
- this.simpleButton1.TabIndex = 3;
- this.simpleButton1.Text = "验证登录码有效性";
- this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
- //
- // memoEdit1
- //
- this.memoEdit1.Dock = System.Windows.Forms.DockStyle.Top;
- this.memoEdit1.Location = new System.Drawing.Point(0, 0);
- this.memoEdit1.Name = "memoEdit1";
- this.memoEdit1.Size = new System.Drawing.Size(909, 355);
- this.memoEdit1.TabIndex = 0;
- //
// xtraTabPage3
//
this.xtraTabPage3.Controls.Add(this.groupBox2);
@@ -151,50 +115,6 @@
this.xtraTabPage3.Size = new System.Drawing.Size(909, 466);
this.xtraTabPage3.Text = " Cookie登录 ";
//
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.linkLabel1);
- this.groupBox1.Controls.Add(this.textBox1);
- this.groupBox1.Controls.Add(this.simpleButton2);
- this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
- this.groupBox1.Location = new System.Drawing.Point(0, 0);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(909, 222);
- this.groupBox1.TabIndex = 1;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "第一步 请输入抖音Cookies";
- //
- // linkLabel1
- //
- this.linkLabel1.AutoSize = true;
- this.linkLabel1.Location = new System.Drawing.Point(215, 0);
- this.linkLabel1.Name = "linkLabel1";
- this.linkLabel1.Size = new System.Drawing.Size(79, 14);
- this.linkLabel1.TabIndex = 1;
- this.linkLabel1.TabStop = true;
- this.linkLabel1.Text = "复制登录地址";
- this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
- //
- // textBox1
- //
- this.textBox1.Dock = System.Windows.Forms.DockStyle.Top;
- this.textBox1.Location = new System.Drawing.Point(3, 18);
- this.textBox1.Multiline = true;
- this.textBox1.Name = "textBox1";
- this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
- this.textBox1.Size = new System.Drawing.Size(903, 152);
- this.textBox1.TabIndex = 0;
- //
- // simpleButton2
- //
- this.simpleButton2.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("simpleButton2.ImageOptions.Image")));
- this.simpleButton2.Location = new System.Drawing.Point(358, 176);
- this.simpleButton2.Name = "simpleButton2";
- this.simpleButton2.Size = new System.Drawing.Size(194, 31);
- this.simpleButton2.TabIndex = 2;
- this.simpleButton2.Text = "验证Cookies有效性";
- this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click_1);
- //
// groupBox2
//
this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
@@ -253,6 +173,86 @@
this.textBox2.Size = new System.Drawing.Size(897, 172);
this.textBox2.TabIndex = 0;
//
+ // groupBox1
+ //
+ this.groupBox1.Controls.Add(this.linkLabel1);
+ this.groupBox1.Controls.Add(this.textBox1);
+ this.groupBox1.Controls.Add(this.simpleButton2);
+ this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.groupBox1.Location = new System.Drawing.Point(0, 0);
+ this.groupBox1.Name = "groupBox1";
+ this.groupBox1.Size = new System.Drawing.Size(909, 222);
+ this.groupBox1.TabIndex = 1;
+ this.groupBox1.TabStop = false;
+ this.groupBox1.Text = "第一步 请输入抖音Cookies";
+ //
+ // linkLabel1
+ //
+ this.linkLabel1.AutoSize = true;
+ this.linkLabel1.Location = new System.Drawing.Point(215, 0);
+ this.linkLabel1.Name = "linkLabel1";
+ this.linkLabel1.Size = new System.Drawing.Size(79, 14);
+ this.linkLabel1.TabIndex = 1;
+ this.linkLabel1.TabStop = true;
+ this.linkLabel1.Text = "复制登录地址";
+ this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked);
+ //
+ // textBox1
+ //
+ this.textBox1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.textBox1.Location = new System.Drawing.Point(3, 18);
+ this.textBox1.Multiline = true;
+ this.textBox1.Name = "textBox1";
+ this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
+ this.textBox1.Size = new System.Drawing.Size(903, 152);
+ this.textBox1.TabIndex = 0;
+ //
+ // simpleButton2
+ //
+ this.simpleButton2.ImageOptions.Image = ((System.Drawing.Image)(resources.GetObject("simpleButton2.ImageOptions.Image")));
+ this.simpleButton2.Location = new System.Drawing.Point(358, 176);
+ this.simpleButton2.Name = "simpleButton2";
+ this.simpleButton2.Size = new System.Drawing.Size(194, 31);
+ this.simpleButton2.TabIndex = 2;
+ this.simpleButton2.Text = "验证Cookies有效性";
+ this.simpleButton2.Click += new System.EventHandler(this.simpleButton2_Click_1);
+ //
+ // xtraTabPage2
+ //
+ this.xtraTabPage2.Controls.Add(this.label1);
+ this.xtraTabPage2.Controls.Add(this.simpleButton1);
+ this.xtraTabPage2.Controls.Add(this.memoEdit1);
+ this.xtraTabPage2.Name = "xtraTabPage2";
+ this.xtraTabPage2.Size = new System.Drawing.Size(909, 466);
+ this.xtraTabPage2.Text = " 同软件登录码 ";
+ //
+ // label1
+ //
+ this.label1.AutoSize = true;
+ this.label1.ForeColor = System.Drawing.Color.Blue;
+ this.label1.Location = new System.Drawing.Point(247, 373);
+ this.label1.Name = "label1";
+ this.label1.Size = new System.Drawing.Size(403, 14);
+ this.label1.TabIndex = 4;
+ this.label1.Text = "注:抖音登录码为相同返利软件联盟列表中选中要复制的抖音右击复制所得";
+ //
+ // simpleButton1
+ //
+ this.simpleButton1.Location = new System.Drawing.Point(351, 402);
+ this.simpleButton1.Name = "simpleButton1";
+ this.simpleButton1.Size = new System.Drawing.Size(194, 41);
+ this.simpleButton1.TabIndex = 3;
+ this.simpleButton1.Text = "验证登录码有效性";
+ this.simpleButton1.Click += new System.EventHandler(this.simpleButton1_Click);
+ //
+ // memoEdit1
+ //
+ this.memoEdit1.Dock = System.Windows.Forms.DockStyle.Top;
+ this.memoEdit1.Location = new System.Drawing.Point(0, 0);
+ this.memoEdit1.Name = "memoEdit1";
+ this.memoEdit1.Size = new System.Drawing.Size(909, 355);
+ this.memoEdit1.TabIndex = 0;
+ //
// douyin_form_login
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
@@ -266,14 +266,14 @@
((System.ComponentModel.ISupportInitialize)(this.xtraTabControl1)).EndInit();
this.xtraTabControl1.ResumeLayout(false);
this.xtraTabPage1.ResumeLayout(false);
+ this.xtraTabPage3.ResumeLayout(false);
+ this.groupBox2.ResumeLayout(false);
+ this.groupBox2.PerformLayout();
+ this.groupBox1.ResumeLayout(false);
+ this.groupBox1.PerformLayout();
this.xtraTabPage2.ResumeLayout(false);
this.xtraTabPage2.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.memoEdit1.Properties)).EndInit();
- this.xtraTabPage3.ResumeLayout(false);
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.groupBox2.ResumeLayout(false);
- this.groupBox2.PerformLayout();
this.ResumeLayout(false);
}