微信界面调整 拼多多买手售后单问题修复
This commit is contained in:
1 parent
f9572ea046
commit
a3d15b1b3d
50 files changed
+2076
-1932
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user