微信界面调整 拼多多买手售后单问题修复

This commit is contained in:
wule_5900x committed 2026-05-10 14:28:18 +08:00
1 parent f9572ea046
commit a3d15b1b3d
50 files changed
+2076 -1932

No files matched your search

@@ -58,7 +58,7 @@ namespace KJD_Web.BLL.BXX
string sale_count_text = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sale_count_text"))?.Replace("'", "\\'");
string distribution_set = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "distribution_set"))?.Replace("'", "\\'");
string special_prod_type = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "special_prod_type"))?.Replace("'", "\\'");
if (special_prod_type == null)
if (special_prod_type != "爆款商品")
special_prod_type = "普通商品";
string add_user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "add_user_name"))?.Replace("'", "\\'");
@@ -173,6 +173,8 @@ namespace KJD_Web.BLL.BXX
string sale_count_text = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sale_count_text"))?.Replace("'", "\\'");
string wx_safe_status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_safe_status"))?.Replace("'", "\\'");
string special_prod_type = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "special_prod_type"))?.Replace("'", "\\'");
if (!string.IsNullOrEmpty(special_prod_type) && special_prod_type != "爆款商品")
special_prod_type = "普通商品";
string wx_cat_1 = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_cat_1"))?.Replace("'", "\\'");
string wx_cat_2 = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_cat_2"))?.Replace("'", "\\'");
string wx_cat_3 = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_cat_3"))?.Replace("'", "\\'");
@@ -1519,8 +1521,9 @@ namespace KJD_Web.BLL.BXX
where += " and p.product_get_type ='" + product_get_type + "'";
if (!string.IsNullOrEmpty(wx_safe_status))
where += " and p.wx_safe_status in ('" + wx_safe_status.Replace(",", "','") + "')";
if (!string.IsNullOrEmpty(special_prod_type)) // 图书,普通商品
where += " and p.special_prod_type ='" + special_prod_type + "'";
//if (!string.IsNullOrEmpty(special_prod_type)) // 普通商品 爆款商品
// where += " and p.special_prod_type ='" + special_prod_type + "'";
sql += " and p.special_prod_type in ('普通商品','书籍')";
// 供应商货源是否已完成初始设置
if (!string.IsNullOrEmpty(is_supplier_prod_ok))
{
@@ -1868,6 +1871,8 @@ namespace KJD_Web.BLL.BXX
string sku_edit_json = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "sku_edit_json"))?.Replace("'", "\\'");
string wx_safe_status = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref inputData, "wx_safe_status"))?.Replace("'", "\\'");
string special_prod_type = RegexUtils.GetStringQuery(ref inputData, "special_prod_type")?.Replace("'", "\\'");
if (!string.IsNullOrEmpty(special_prod_type) && special_prod_type != "爆款商品")
special_prod_type = "普通商品";
if (string.IsNullOrEmpty(user_name))
{
@@ -83,6 +83,11 @@ namespace KJD_Web.Upload.Prod
{
string prodStr = Encoding.UTF8.GetString(this.FileUpload1.FileBytes);
prodStr = TextBox2.Text.Trim();
return getProd(prodStr);
}
public static string getProd(string prodStr, string special_prod_type = null)
{
var reducePer = 0m;
var realPricePer = 1m - reducePer * 0.01m;
if (realPricePer < 0.1m)
@@ -366,10 +371,10 @@ namespace KJD_Web.Upload.Prod
return "解析失败Sku价格为0";
}
return SaveWxProd(wxClientProd.product_key.product_id, wxClientProd, prodStr);
return SaveWxProd(wxClientProd.product_key.product_id, wxClientProd, prodStr, special_prod_type);
}
string SaveWxProd(string prodId, WXClientProductInfoLite wxClientProdInfoLite, string baseStr)
public static string SaveWxProd(string prodId, WXClientProductInfoLite wxClientProdInfoLite, string baseProdStr, string special_prod_type = null)
{
bool isExist = false;
var existUrl = BaseClass.BuildPDDObjString("product/get_product_spu_id_list");
@@ -395,7 +400,7 @@ namespace KJD_Web.Upload.Prod
var skus = wxClientProdInfoLite.productSkus;
var product_json = "{\"wxxdData\":" + JsonUtils.SerializeObject(wxClientProdInfoLite) + ",\"baseData\":" + JsonUtils.SerializeObject(baseStr) + "}";
var product_json = "{\"wxxdData\":" + JsonUtils.SerializeObject(wxClientProdInfoLite) + ",\"baseData\":" + JsonUtils.SerializeObject(baseProdStr) + "}";
var data = UserLogin.GetSignaturex() +
"&from_shop_id=" + wxClientProdInfoLite.product_key.appid +
"&from_shop_name=" + wxClientProdInfoLite.product_key.appid +
@@ -430,9 +435,13 @@ namespace KJD_Web.Upload.Prod
data += "&wx_cat_3=" + wxClientProdInfoLite.info.category[2].catIdStr;
}
if (wxClientProdInfoLite.info.category.FirstOrDefault().name == "图书")
//if (wxClientProdInfoLite.info.category.FirstOrDefault().name == "图书")
//{
// data += "&special_prod_type=" + HttpUtility.UrlEncode("书籍", Encoding.UTF8);
//}
if (special_prod_type != null)
{
data += "&special_prod_type=" + HttpUtility.UrlEncode("书籍", Encoding.UTF8);
data += "&special_prod_type=" + special_prod_type;
}
html = HtmlUtils.PostUtf8(url, data);