From 3af55bdc3fcba1adcf5eb3193aef42102a3125a0 Mon Sep 17 00:00:00 2001 From: wule_5900x Date: Tue, 10 Feb 2026 22:48:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BA=97=E9=93=BA?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E4=BF=A1=E6=81=AF=E4=B8=A2=E5=A4=B1=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AllBase/BaseClass.cs | 2 +- .../WxShopStatisticsForm.Designer.cs | 34 +++++++++---------- .../WXForms/ShopForms/WxShopStatisticsForm.cs | 11 +++++- 3 files changed, 28 insertions(+), 19 deletions(-) diff --git a/AllBase/BaseClass.cs b/AllBase/BaseClass.cs index d1e88cd..69d2a02 100644 --- a/AllBase/BaseClass.cs +++ b/AllBase/BaseClass.cs @@ -27,7 +27,7 @@ namespace AllBase /// /// 版本ID /// - public static int VersionCount = 837; + public static int VersionCount = 838; //public static int VersionCount = 613; /// diff --git a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.Designer.cs b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.Designer.cs index c925f51..ffef0d3 100644 --- a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.Designer.cs +++ b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.Designer.cs @@ -85,6 +85,7 @@ namespace TemuKJD.WXForms.ShopForms this.btnClose = new DevComponents.DotNetBar.PanelEx(); this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); this.dgvShop = new TemuKJD.UserComponent.DataGridViewEx(); + this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); this.colSelect = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.colLoginStatus = new System.Windows.Forms.DataGridViewLinkColumn(); this.colDetail = new System.Windows.Forms.DataGridViewLinkColumn(); @@ -112,7 +113,6 @@ namespace TemuKJD.WXForms.ShopForms this.colAvailableAmount = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colPendingAmount = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colDepositBalance = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.statusBar = new TemuKJD.UserControls.StatusBarUserControl(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); @@ -927,6 +927,17 @@ namespace TemuKJD.WXForms.ShopForms this.dgvShop.TabIndex = 5; this.dgvShop.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShop_CellContentClick); // + // 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(1446, 26); + this.statusBar.TabIndex = 1; + // // colSelect // this.colSelect.FillWeight = 22F; @@ -1132,18 +1143,7 @@ namespace TemuKJD.WXForms.ShopForms this.colDepositBalance.HeaderText = "保证金"; this.colDepositBalance.Name = "colDepositBalance"; this.colDepositBalance.ReadOnly = true; - this.colDepositBalance.Width = 54; - // - // 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(1446, 26); - this.statusBar.TabIndex = 1; + this.colDepositBalance.Width = 60; // // WxShopStatisticsForm // @@ -1227,6 +1227,10 @@ namespace TemuKJD.WXForms.ShopForms private System.Windows.Forms.Label label4; private System.Windows.Forms.Label lblWaybillError; private System.Windows.Forms.Label label3; + private UserComponent.UcComboBoxMutiSelect cmbFilterShopNotes; + private System.Windows.Forms.Label label18; + private System.Windows.Forms.TextBox txtFilterShopName; + private System.Windows.Forms.Label label19; private System.Windows.Forms.DataGridViewCheckBoxColumn colSelect; private System.Windows.Forms.DataGridViewLinkColumn colLoginStatus; private System.Windows.Forms.DataGridViewLinkColumn colDetail; @@ -1254,9 +1258,5 @@ namespace TemuKJD.WXForms.ShopForms private System.Windows.Forms.DataGridViewTextBoxColumn colAvailableAmount; private System.Windows.Forms.DataGridViewTextBoxColumn colPendingAmount; private System.Windows.Forms.DataGridViewTextBoxColumn colDepositBalance; - private UserComponent.UcComboBoxMutiSelect cmbFilterShopNotes; - private System.Windows.Forms.Label label18; - private System.Windows.Forms.TextBox txtFilterShopName; - private System.Windows.Forms.Label label19; } } \ No newline at end of file diff --git a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.cs b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.cs index 1641e9c..03c35bd 100644 --- a/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.cs +++ b/TEMUKJD/WXForms/ShopForms/WxShopStatisticsForm.cs @@ -410,7 +410,7 @@ namespace TemuKJD.WXForms.ShopForms { try { - string html = GetShopSaleInfoList(shop, + string html = GetShopSaleInfoRealTimeList(shop, BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now.Date), BaseClass.DateTimeToTimestampMilliseconds(DateTime.Now)); System.Threading.Thread.Sleep(Randomx.GetId(50, 100)); @@ -595,6 +595,15 @@ namespace TemuKJD.WXForms.ShopForms var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, data, referer); return result; } + public static string GetShopSaleInfoRealTimeList(ShopLoginInfo shop, long startTime, long endTime) + { + string url = "https://store.weixin.qq.com/shop-faas/mmecnodelinercgi/cgi/liner_query/3/home-overview-shop-realtime?token=&lang=zh_CN"; + string referer = "https://store.weixin.qq.com/shop/home"; + //string data = @"{""time_query"":{""dateFormat"":1,""dateType"":0,""dateRange"":7,""startMs"":1767974400000,""endMs"":1770566399999}}"; + string data = @"{""time_query"":{""dateFormat"":1,""dateType"":0,""dateRange"":1,""startMs"":" + startTime + @",""endMs"":" + endTime + "}}"; + var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, data, referer); + return result; + } public static string GetShopScore(ShopLoginInfo shop) {