修复日店铺统计信息丢失问题
This commit is contained in:
1 parent
7c2e15943f
commit
3af55bdc3f
3 files changed
+28
-19
No files matched your search
@@ -27,7 +27,7 @@ namespace AllBase
|
||||
/// <summary>
|
||||
/// 版本ID
|
||||
/// </summary>
|
||||
public static int VersionCount = 837;
|
||||
public static int VersionCount = 838;
|
||||
//public static int VersionCount = 613;
|
||||
|
||||
/// <summary>
|
||||
|
||||
+17
-17
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user