微信小店上传商品完成
This commit is contained in:
1 parent
0c2930bea5
commit
9e1a354ee5
35 files changed
+1965
-579
No files matched your search
@@ -95,18 +95,18 @@ namespace TemuKJD.BLL
|
||||
}
|
||||
else
|
||||
{
|
||||
string getImgError;
|
||||
var image = GetHtml.GetUrlImg(frontGallery.url.Replace("https://", "http://"), out getImgError);
|
||||
if (!string.IsNullOrEmpty(getImgError))
|
||||
{
|
||||
return getImgError;
|
||||
}
|
||||
//string getImgError;
|
||||
//var image = GetHtml.GetUrlImg(frontGallery.url.Replace("https://", "http://"), out getImgError);
|
||||
//if (!string.IsNullOrEmpty(getImgError))
|
||||
//{
|
||||
// return getImgError;
|
||||
//}
|
||||
prodInfo.detail.galleries.Add(new gallery_item()
|
||||
{
|
||||
url = frontGallery.url,
|
||||
type = frontGallery.type,
|
||||
width = image.Width,
|
||||
height = image.Height,
|
||||
//width = image.Width,
|
||||
//height = image.Height,
|
||||
});
|
||||
}
|
||||
galleryIndex++;
|
||||
@@ -318,7 +318,7 @@ namespace TemuKJD.BLL
|
||||
dbProd.product_json = JsonHelper.SerializeObject(prodInfo);
|
||||
|
||||
bool isExist = false;
|
||||
var existUrl = BaseClass.BuildObjString("product/get_product_list");
|
||||
var existUrl = BaseClass.BuildPDDObjString("product/get_product_list");
|
||||
string existData = UserLogin.GetSignaturex() + "&search_spu=" + prodInfo.detail.goods_id;
|
||||
string html = GetHtml.PostUtf8(existUrl, existData);
|
||||
if (string.IsNullOrEmpty(html) || !html.Contains("\"code\":200"))
|
||||
@@ -335,12 +335,12 @@ namespace TemuKJD.BLL
|
||||
return "入库失败,产品数据库已存在商品查询失败";
|
||||
}
|
||||
|
||||
var url = BaseClass.BuildObjString("product/add_product");
|
||||
var url = BaseClass.BuildPDDObjString("product/add_product");
|
||||
if (isExist)
|
||||
{
|
||||
if (UpdateOldData)
|
||||
{
|
||||
url = BaseClass.BuildObjString("product/mdy_product");
|
||||
url = BaseClass.BuildPDDObjString("product/mdy_product");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user