平台禁售商品设置
This commit is contained in:
1 parent
9a47ecf102
commit
b5ae0fc2f2
11 files changed
+604
-123
No files matched your search
@@ -1050,7 +1050,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
KJDDBProduct kjdDbProd = selectProd.kjdDbProduct;
|
||||
string errStr = "";
|
||||
if (kjdDbProd == null)
|
||||
kjdDbProd = GetProductDetail(selectProd.out_product_Id.ToString(), out errStr, true);
|
||||
kjdDbProd = GetProductDetail(selectProd.out_product_Id.ToString(), out errStr, true, true);
|
||||
if (kjdDbProd == null || kjdDbProd.id == 0)
|
||||
{
|
||||
if (kjdDbProd?.id == 0)
|
||||
@@ -1221,7 +1221,15 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}));
|
||||
}
|
||||
|
||||
public static KJDDBProduct GetProductDetail(string prodDbId, out string errMsg, bool noViolationProduct = false)
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="prodDbId"></param>
|
||||
/// <param name="errMsg"></param>
|
||||
/// <param name="noViolationProduct">校验违规商品</param>
|
||||
/// <param name="noBanWx">校验微信禁售商品</param>
|
||||
/// <returns></returns>
|
||||
public static KJDDBProduct GetProductDetail(string prodDbId, out string errMsg, bool noViolationProduct = false, bool noBanWx = false)
|
||||
{
|
||||
errMsg = "";
|
||||
|
||||
@@ -1237,6 +1245,8 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
var data = UserLogin.GetSignaturex() + "&search_db_ids=" + prodDbId;
|
||||
if (noViolationProduct)
|
||||
data += "&wx_safe_status=安全商品,未校验";
|
||||
if (noBanWx)
|
||||
data += "&ban_wx=0";
|
||||
|
||||
var html = GetHtml.PostUtf8(url, data);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
@@ -4395,6 +4405,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
data = UserLogin.GetSignaturex() +
|
||||
"&page=" + 1 +
|
||||
"&page_size=" + pageSize;
|
||||
data += "&ban_wx=0";
|
||||
if (isNotCount)
|
||||
{
|
||||
data += "&is_not_count=" + true;
|
||||
|
||||
Reference in new issue
Block a user