增加 导入外部微信数据
This commit is contained in:
1 parent
5ed558e343
commit
a9f7b1f831
13 files changed
+2088
-1589
No files matched your search
@@ -549,21 +549,21 @@ namespace TemuKJD.BLL
|
||||
width = 0,
|
||||
height = 0,
|
||||
});
|
||||
}
|
||||
else if (frontGallery.type==9 && !string.IsNullOrEmpty(frontGallery.video_url))
|
||||
{
|
||||
}
|
||||
else if (frontGallery.type == 9 && !string.IsNullOrEmpty(frontGallery.video_url))
|
||||
{
|
||||
//"url": "http://video3.yangkeduo.com/i1/2020-06-06/bec95fd51b79e5c572153f7cb923a1c3.mp4.0_0.p0.jpg",
|
||||
//"video_url": "https://video3.pddpic.com/i1/2020-06-06/bec95fd51b79e5c572153f7cb923a1c3.mp4.f30.mp4",
|
||||
|
||||
prodInfo.detail.galleries.Add(new gallery_item()
|
||||
{
|
||||
url = frontGallery.video_url,
|
||||
type = 6,
|
||||
width = 0,
|
||||
height = 0,
|
||||
});
|
||||
}
|
||||
else
|
||||
|
||||
prodInfo.detail.galleries.Add(new gallery_item()
|
||||
{
|
||||
url = frontGallery.video_url,
|
||||
type = 6,
|
||||
width = 0,
|
||||
height = 0,
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
//string getImgError;
|
||||
//var image = GetHtml.GetUrlImg(frontGallery.url.Replace("https://", "http://"), out getImgError);
|
||||
@@ -1672,18 +1672,18 @@ namespace TemuKJD.BLL
|
||||
/// <param name="specialProdType"></param>
|
||||
/// <param name="IsCollectAuthorityUser"></param>
|
||||
/// <returns></returns>
|
||||
public string PddFrontToPddBackConvertFactory(string outProdJson, bool UpdateOldData = true, string specialProdType = null, bool IsCollectAuthorityUser = false)
|
||||
public string PddFrontToPddBackConvertFactory(string filePath, bool UpdateOldData = true, string specialProdType = null, bool IsCollectAuthorityUser = false)
|
||||
{
|
||||
PDDFrontProductInfo5 frontProdInfo = null;
|
||||
try
|
||||
{
|
||||
frontProdInfo = ConverterToPddFactory.Convert(outProdJson);
|
||||
frontProdInfo = ConverterToPddFactory.Convert(filePath);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return "转换错误" + ex.Message;
|
||||
}
|
||||
|
||||
|
||||
if (frontProdInfo == null || frontProdInfo.GoodsId == null)
|
||||
{
|
||||
return "商品数据信息为空";
|
||||
@@ -2016,7 +2016,14 @@ namespace TemuKJD.BLL
|
||||
return "已存在相同id商品,跳过";
|
||||
}
|
||||
}
|
||||
string product_get_type = "多多外部数据";
|
||||
|
||||
switch (frontProdInfo.Platform)
|
||||
{
|
||||
case PlatformType.WX:
|
||||
product_get_type = "微信外部数据";
|
||||
break;
|
||||
}
|
||||
var data = Work.UserLogin.GetSignaturex() +
|
||||
"&from_shop_id=" + frontProdInfo.MallId +
|
||||
"&spu_id=" + prodInfo.detail.goods_id.ParseToString() + collectAuthorityTag +
|
||||
@@ -2033,7 +2040,8 @@ namespace TemuKJD.BLL
|
||||
"&main_img=" + HttpUtility.UrlEncode(dbProd.main_img, Encoding.UTF8) +
|
||||
"&sale_count=" + HttpUtility.UrlEncode(prodInfo.sale_count, Encoding.UTF8) +
|
||||
"&sale_count_text=" + HttpUtility.UrlEncode(prodInfo.sale_count_text, Encoding.UTF8) +
|
||||
"&product_get_type=" + HttpUtility.UrlEncode("多多外部数据", Encoding.UTF8);
|
||||
"&product_get_type=" + HttpUtility.UrlEncode(product_get_type, Encoding.UTF8);
|
||||
|
||||
if (!string.IsNullOrEmpty(specialProdType))
|
||||
data += "&special_prod_type=" + HttpUtility.UrlEncode(specialProdType, Encoding.UTF8);
|
||||
if (IsCollectAuthorityUser)
|
||||
|
||||
Reference in new issue
Block a user