rdluck 4 years ago
parent
commit
618a3c97b1
1 changed files with 1 additions and 1 deletions
  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
 	}