1.界面优化调整 2.618取消活动 3.清理无流量新 4.用户商品库1688及拼多多外部商品入库逻辑优化 5.带百分号的属性微信上货优化 6.数据库产品在不同用户间迁移 7.删除店铺功能开放给充值用户防止店铺导入错误无法删除
This commit is contained in:
1 parent
2759ff0f6d
commit
0a9980335f
59 files changed
+3078
-652
No files matched your search
@@ -1208,7 +1208,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
|
||||
result = UploadProduct(shop, kjdDbProdTmp, selectProd, row.Cells["colOpResult"], startTime);
|
||||
if (result.Contains("今日提审次数已用尽,请明日再试") || result.Contains("如需上架请先缴纳足额保证金") || result.Contains("在架商品数已达到上限") ||
|
||||
result.Contains("拥金上货失败:需要开通优选联盟"))
|
||||
result.Contains("提审次数已达上限") || result.Contains("拥金上货失败:需要开通优选联盟"))
|
||||
{
|
||||
var shopRow = dgvShop.Rows.Cast<DataGridViewRow>().FirstOrDefault(r => r.Cells["colShopId"].Value.ParseToString() == shop.ShopId);
|
||||
if (shopRow != null)
|
||||
@@ -3309,10 +3309,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
attrValue = "中国大陆";
|
||||
}
|
||||
else if (attrValueLst.Any(v => v.Contains("%")))
|
||||
{
|
||||
attrValue = attrValueLst.FirstOrDefault();
|
||||
}
|
||||
//else if (attrValueLst.Any(v => v.Contains("%")))
|
||||
//{
|
||||
// attrValue = attrValueLst.FirstOrDefault();
|
||||
//}
|
||||
else
|
||||
attrValue = attrValueLst.Where(v => !"真丝、蚕丝、香云纱、羊绒、羊毛、羊羔绒、羊羔毛、羽绒、皮草".Contains(v)).OrderBy(x => Guid.NewGuid()).FirstOrDefault();
|
||||
}
|
||||
@@ -3330,7 +3330,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
if (attr.type == "decimal4_unit" || attr.type == "integer_unit")
|
||||
{
|
||||
if (attr.value == "%")
|
||||
attrValue = "10 %";
|
||||
attrValue = "1 %";
|
||||
else if (attr.value == "g;kg")
|
||||
attrValue = "50 g";
|
||||
else if (attr.value == "g")
|
||||
@@ -3488,10 +3488,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
attrValue = "中国大陆";
|
||||
}
|
||||
else if (attrValueLst.Any(v => v.Contains("%")))
|
||||
{
|
||||
attrValue = attrValueLst.FirstOrDefault();
|
||||
}
|
||||
//else if (attrValueLst.Any(v => v.Contains("%")))
|
||||
//{
|
||||
// attrValue = attrValueLst.FirstOrDefault();
|
||||
//}
|
||||
else
|
||||
attrValue = attrValueLst.Where(v => !"真丝、蚕丝、香云纱、羊绒、羊毛、羊羔绒、羊羔毛、羽绒、皮草".Contains(v)).OrderBy(x => Guid.NewGuid()).FirstOrDefault();
|
||||
|
||||
@@ -3573,7 +3573,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
{
|
||||
attrValue = "其他";
|
||||
}
|
||||
if ((attrValue.IsNullOrEmpty() || attrValue == "见包装") && (attr.type == "decimal4_unit" || attr.type == "integer_unit"))
|
||||
if ((attrValue.IsNullOrEmpty() || attrValue == "见包装" || attrValue == "%") && (attr.type == "decimal4_unit" || attr.type == "integer_unit"))
|
||||
{
|
||||
// 走系统推荐
|
||||
var param = recommendParamRst.productInfo.param.FirstOrDefault(p => p.categorys?.FirstOrDefault()?.name == attr.name);
|
||||
@@ -3589,7 +3589,7 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
}
|
||||
else if (attr.value == "%")
|
||||
attrValue = "10 %";
|
||||
attrValue = "1 %";
|
||||
else if (attr.value == "g;kg")
|
||||
attrValue = "50 g";
|
||||
else if (attr.value == "g")
|
||||
@@ -5278,8 +5278,10 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
}
|
||||
|
||||
// 爆款数据商品
|
||||
// 不为空搜内容
|
||||
if (!string.IsNullOrWhiteSpace(cmbHot.Text.Trim()))
|
||||
data += "&special_prod_type=" + cmbHot.Text.Replace("普通商品", "普通商品,书籍");
|
||||
// 为空按照权限搜
|
||||
else if (BaseClass.SaLevel > 0 || BaseClass.UserAuthority.Contains("爆款数据"))
|
||||
data += "&special_prod_type=爆款数据,普通商品,书籍";
|
||||
else
|
||||
@@ -6174,6 +6176,15 @@ namespace TemuKJD.WXForms.ProductForms
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string searchProductWithSpuId(ShopLoginInfo shop, string spuId)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/searchProduct?" +
|
||||
"token=&lang=zh_CN&pageSize=20&productStatus[]=-1&productSource=[1,16,32]&searchSource=1&useNew=true&pageNum=1&status[]=-1&spuId=" + spuId;
|
||||
string refere = "https://store.weixin.qq.com/shop/goods/list";
|
||||
var result = WXHttpResponseBLL.WeiXinGetResponse(shop, url, refere);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static string searchProductWithTitle(ShopLoginInfo shop, string urlEncodeTitle)
|
||||
{
|
||||
string url = "https://store.weixin.qq.com/shop-faas/mmchannelstradeproductcore/cgi/goods/searchProduct?" +
|
||||
|
||||
Reference in new issue
Block a user