退货包裹计费功能 活动查询已报名商品 优化清理无流量 插旗等相关服务

This commit is contained in:
wule committed 2026-08-12 21:46:33 +08:00
1 parent 3611d9a8e9
commit 99237fae41
25 files changed
+1477 -256

No files matched your search

+10 -1
View File
@@ -2518,7 +2518,16 @@ namespace TemuKJD.WXForms.OrderForms
var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, refere);
return result;
}
public static string batchUpdateStock(ShopLoginInfo shop, string spuId, string skuId, string num)
public static string batchUpdateStockAdd(ShopLoginInfo shop, string spuId, string skuId, string num)
{
string url = "https://store.weixin.qq.com/shop-faas/mmecnodeproductlist/cgi/goods/batchUpdateStock?token=&lang=zh_CN";
string body = @"{""skuList"":[{""spuId"":""" + spuId + @""",""skuId"":""" + skuId + @""",""diffType"":1,""num"":" + num + "}]}";
string refere = "https://store.weixin.qq.com/shop/goods/list";
var result = WXHttpResponseBLL.WeiXinPostResponse(shop, url, body, refere);
return result;
}
public static string batchUpdateStockReduce(ShopLoginInfo shop, string spuId, string skuId, string num)
{
string url = "https://store.weixin.qq.com/shop-faas/mmecnodeproductlist/cgi/goods/batchUpdateStock?token=&lang=zh_CN";
string body = @"{""skuList"":[{""spuId"":""" + spuId + @""",""skuId"":""" + skuId + @""",""diffType"":2,""num"":" + num + "}]}";
@@ -204,7 +204,7 @@ namespace TemuKJD.WXForms.OrderForms
string spuId = lblSpuId.Text.Trim();
string skuId = lblSkuId.Text.Trim();
string num = txtCurrentStock.Text.Trim();
var rst = WXOrderList.batchUpdateStock(shop, spuId, skuId, num);
var rst = WXOrderList.batchUpdateStockReduce(shop, spuId, skuId, num);
if (!rst.Contains("\"code\":0"))
{
var error = BaseRegex.GetStringJsonByRegs(ref rst, rst, "err_msg", "error_msg", "errMsg", "errorMsg", "msg");