修复日店铺统计信息丢失问题
This commit is contained in:
1 parent
7c2e15943f
commit
3af55bdc3f
3 files changed
+28
-19
No files matched your search
@@ -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