广告为空报错

This commit is contained in:
xxred
2019-01-02 19:27:18 +08:00
parent 9fe99a0843
commit 34a697123c
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -305,6 +305,10 @@ namespace COMCMS.Core
{
Ads model = new Ads();
model = Find(_.Id == aid);
if (model == null)
{
return null;
}
if (model.TId == 4)
{
List<ImgAds> listimg = new List<ImgAds>();