rdluck %!s(int64=4) %!d(string=hai) anos
pai
achega
618a3c97b1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/video.go

+ 1 - 1
models/video.go

@@ -63,7 +63,7 @@ func GetVideoList(condition string, pars []interface{}, startSize, pageSize int)
 	sql := `SELECT a.*,GROUP_CONCAT(c.tags_name SEPARATOR '/') AS tags_name FROM video AS a
 			INNER JOIN video_tags AS b ON a.video_id=b.video_id
 			INNER JOIN tags AS c ON b.tags_id=c.tags_id 
-            WHERE 1=1 `
+            WHERE 1=1 AND status=1 `
 	if condition != "" {
 		sql += condition
 	}