修复git hub中问题2-6的问题

This commit is contained in:
chenqi
2018-12-23 21:19:50 +08:00
parent c1f8738a29
commit cfc195e83e
2 changed files with 196 additions and 181 deletions
+1 -1
View File
@@ -305,7 +305,7 @@ namespace COMCMS.Core
{
Ads model = new Ads();
model = Find(_.Id == aid);
if (model.TId == 4)
if (model!=null && model.TId == 4)
{
List<ImgAds> listimg = new List<ImgAds>();
listimg = JsonConvert.DeserializeObject<List<ImgAds>>(model.Content);