Browse Source

Merge branch 'yb/11_road_video' into debug

xiexiaoyuan 2 years ago
parent
commit
a7ea65e69b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      services/community/video.go

+ 3 - 0
services/community/video.go

@@ -194,11 +194,14 @@ func GetRoadVideoList(userInfo user.UserInfo, pageIndex, pageSize, videoId, char
 					}
 				}
 			}
+
 			if !hasPermission { //无权限
 				code = response2.SPECIFIC_FAIL_CODE
 				err = errors.New("无查看该视频的权限")
 				return
 			}
+			videoList = append(videoList, videoInfo)
+			total = 1
 		}
 	} else {
 		if chartPermissionId > 0 {