1.修复抖音标题空

This commit is contained in:
老道 2023-01-14 15:24:58 +08:00
parent a340625d58
commit 7771779478
1 changed files with 1 additions and 3 deletions

View File

@ -372,14 +372,12 @@ namespace DYRebate
} }
var title = string.Empty;
//店铺名称 //店铺名称
var nick = goods.shop_name; var nick = goods.shop_name;
//商品主图 //商品主图
var pict_url = !string.IsNullOrWhiteSpace(goods.cover) ? goods.cover : (goods.imgs != null && goods.imgs.Count != 0) ? goods.imgs[0] : string.Empty; var pict_url = !string.IsNullOrWhiteSpace(goods.cover) ? goods.cover : (goods.imgs != null && goods.imgs.Count != 0) ? goods.imgs[0] : string.Empty;
////商品标题//&lt; &gt;&amp;&quot;&copy; <>&",©; ////商品标题//&lt; &gt;&amp;&quot;&copy; <>&",©;
//title = goods.title.Replace("", "").Replace("&lt;", "<").Replace("&gt;", ">").Replace("&amp;", "&").Replace("&quot;", "\"").Replace(" &copy;", "©");//这里有个看不见的字符,要将其替换掉 var title = goods.title.Replace("", "").Replace("&lt;", "<").Replace("&gt;", ">").Replace("&amp;", "&").Replace("&quot;", "\"").Replace(" &copy;", "©");//这里有个看不见的字符,要将其替换掉
//原价 //原价
var price = decimal.Parse((goods.price / 100m).ToString()); var price = decimal.Parse((goods.price / 100m).ToString());