1记住后台登陆的用户信息

2店铺统计展示
3可选预售设置失败下架
This commit is contained in:
wule committed 2026-02-09 19:05:35 +08:00
1 parent 0c3d232a16
commit 600c009509
19 files changed
+1114 -626

No files matched your search

@@ -709,6 +709,27 @@ namespace TemuKJD.WXForms.ProductForms
if (string.IsNullOrWhiteSpace(errmsg))
errmsg = listingAuditFreeRst;
if (getEditProdRst.Contains("biz magic invalid"))
{
WXShopListForm.Instance.CheckShopLogin(new ShopLoginInfo[] { shop }, false);
Invoke(new Action(() =>
{
row.Cells["colOpResult"].Value = "店铺掉线";
}));
continue;
}
if (chkPreSale.Checked && chkFailDownProd.Checked)
{
var downProd = WXPreSale.DownProd(shop, prodId.ParseToLong());
System.Threading.Thread.Sleep(Randomx.GetId(50, 100));
if (downProd.Contains("\"code\":0"))
{
errmsg += " 预售设置失败 已下架";
}
else
errmsg += " 预售设置失败 下架失败";
}
Invoke(new Action(() =>
{
row.Cells["colOpResult"].Value = errmsg;
@@ -1085,6 +1106,15 @@ namespace TemuKJD.WXForms.ProductForms
return result;
}
public static string DownProd(ShopLoginInfo shop, long prodId)
{
string url = "https://store.weixin.qq.com/shop-faas/mmecnodeproductlist/cgi/goods/BatchUnListing?token=&lang=zh_CN";
string referer = "https://store.weixin.qq.com/shop/goods/list";
string body = @"{""ids"":[" + prodId + @"],""uploadSource"":6}";
var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, referer);
return result;
}
public static string getUploadTempImgAuth(ShopLoginInfo shop, int uploadScene = 3)
{
string url = "https://store.weixin.qq.com/shop-faas/mmecchannelspicture/cgi/getUploadTempImgAuth?token=&lang=zh_CN&uploadScene=" + uploadScene;