1批量类目选择 定向品牌逻辑优化

This commit is contained in:
wule committed 2026-08-14 09:59:09 +08:00
1 parent 87720c3941
commit f80e99cf57
16 files changed
+1239 -50

No files matched your search

@@ -2787,7 +2787,7 @@ namespace KJD_Web.BLL.BXX
JObject obj = new JObject();
obj["order_id"] = order_id;
obj["supplier_appid"] = "wxfc630d60a1af6c6f";
JArray array = (JArray.Parse(dropship_product_list));
JArray array = JArray.Parse(dropship_product_list);
obj["dropship_product_list"] = array;
return HttpUtils.WxApiPostResponse("https://api.weixin.qq.com/channels/ec/order/dropship/assign?access_token=" + token, JsonUtils.SerializeObject(obj), "");
@@ -2800,6 +2800,36 @@ namespace KJD_Web.BLL.BXX
return "{\"code\":19999,\"msg\":\"输入为空\"}";
}
public string WxApiDropshipCancel(string inputData)
{
if (!string.IsNullOrEmpty(inputData))
{
if (!WXUserManage.GetSign(inputData))
return "{\"code\":999,\"msg\":\"校验失败\"}";
var token = RegexUtils.GetStringQuery(ref inputData, "token")?.Replace("'", "\\'");
var order_id = RegexUtils.GetStringQuery(ref inputData, "order_id")?.Replace("'", "\\'");
var ds_order_id = RegexUtils.GetStringQuery(ref inputData, "ds_order_id")?.Replace("'", "\\'");
var dropship_product_list = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "dropship_product_list"))?.Replace("'", "\\'");
try
{
JObject obj = new JObject();
obj["order_id"] = order_id;
obj["ds_order_id"] = ds_order_id;
JArray array = JArray.Parse(dropship_product_list);
obj["dropship_product_list"] = array;
return HttpUtils.WxApiPostResponse("https://api.weixin.qq.com/channels/ec/order/dropship/cancel?access_token=" + token, JsonUtils.SerializeObject(obj), "");
}
catch
{
}
}
return "{\"code\":19999,\"msg\":\"输入为空\"}";
}
public string WxApiCategoryClassify(string inputData)
{
if (!string.IsNullOrEmpty(inputData))
@@ -409,6 +409,19 @@ namespace KJD_Web
Context.Response.End();
}
/// <summary>
/// 添加代发
/// </summary>
[WebMethod]
public void wx_api_dropship_cancel()
{
string jsontext = GetRequestJsonString();
var result = new BXXProductManage().WxApiDropshipCancel(jsontext);
Context.Response.Write(result);
Context.Response.End();
}
[WebMethod]
public void wx_api_category_classify()
{