Ver Fonte

GetNewTitles 取资讯标题列表:只返回已审核记录

deng.yinping há 2 anos atrás
pai
commit
c7df1d9b46
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      models/common.go

+ 1 - 1
models/common.go

@@ -1233,7 +1233,7 @@ func GetNewTitles(req QueryNewTitlesReq) (rsp []QueryNewTitlesRsp, total int64,
 	}
 
 	rsp = make([]QueryNewTitlesRsp, 0)
-	session = engine.Table("SITE_COLUMNDETAIL").Where("ISSHOW = 1")
+	session = engine.Table("SITE_COLUMNDETAIL").Where("ISSHOW = 1 AND STATUS = 20")
 	if req.COLUMNID != 0 {
 		session = session.And("COLUMNID = ?", req.COLUMNID)
 	}