Commit 87ae4de3 authored by 黄奎's avatar 黄奎

插件解析修改

parent 9189f911
......@@ -347,7 +347,18 @@ namespace Mall.Module.MarketingCenter
//微信公众号插件
case "mp-link": item.data = JsonHelper.DeserializeObject<mplinkItem>(item.data.ToString()); break;
//图文插件
case "image-text": item.data = JsonHelper.DeserializeObject<imagetextItem>(item.data.ToString()); break;
case "image-text":
imagetextItem imageItem = new imagetextItem();
try {
var imgData = JsonHelper.DeserializeObject<imagetextItem>(item.data.ToString());
imageItem.content = imgData.content.Replace('”', '"').Replace("”/", @"""");
}
catch
{
}
item.data = imageItem;
break;
//优惠券插件
case "coupon": item.data = JsonHelper.DeserializeObject<couponItem>(item.data.ToString()); break;
//倒计时插件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment