瀏覽代碼

live broad add recommend

abiao 5 年之前
父節點
當前提交
26eb3935d6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      go/gopath/src/fohow.com/apps/models/live_model/live_broad.go

+ 1 - 1
go/gopath/src/fohow.com/apps/models/live_model/live_broad.go

@@ -93,7 +93,7 @@ func GetLatestCount(recommend int64, ptype string, useCache bool) int64 {
 	}
 	item := new(LiveBroad)
 	o := orm.NewOrm()
-	count, _ := o.QueryTable(item).Filter("recommend__gt", recommend).Filter("show_flag", true).Filter("ptype", ptype).Filter("status", 1).Count()
+	count, _ := o.QueryTable(item).Filter("recommend__gt", recommend).Count()
 
 	cache.Cache.Put(k, count, 10*time.Minute)
 	return count