|
|
@ -78,7 +78,8 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
{ |
|
|
|
GoodsId = b.GoodsId, |
|
|
|
HasFilter = b.HasFilter, |
|
|
|
Platform = b.Platform |
|
|
|
Platform = b.Platform, |
|
|
|
GoodsUrl=b.GoodsUrl |
|
|
|
}; |
|
|
|
|
|
|
|
select = select.BuildExtendSelectExpre(); |
|
|
@ -124,6 +125,21 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
Platform = (int)model.Platform |
|
|
|
}; |
|
|
|
|
|
|
|
item.GoodsUrl = string.Empty; |
|
|
|
switch (model.Platform) |
|
|
|
{ |
|
|
|
case ItemPlatform.Taobao: |
|
|
|
item.GoodsUrl = $"https://item.taobao.com/item.htm?id={item.GoodsId}"; |
|
|
|
break; |
|
|
|
case ItemPlatform.Jd: |
|
|
|
item.GoodsUrl = $"https://item.jd.com/{item.GoodsId}.html"; |
|
|
|
break; |
|
|
|
case ItemPlatform.ALBB: |
|
|
|
item.GoodsUrl = $"https://detail.1688.com/offer/{item.GoodsId}.html"; |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int row = Db.Insert(item); |
|
|
|
|
|
|
|
if (row <= 0) |
|
|
@ -320,7 +336,8 @@ namespace Coldairarrow.Business.HuiYan |
|
|
|
{ |
|
|
|
GoodsId = b.GoodsId, |
|
|
|
HasFilter = b.HasFilter, |
|
|
|
Platform = b.Platform |
|
|
|
Platform = b.Platform, |
|
|
|
GoodsUrl=b.GoodsUrl |
|
|
|
}; |
|
|
|
|
|
|
|
select = select.BuildExtendSelectExpre(); |
|
|
|