Browse Source

Merge branch 'cygx_9.1' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 2 years ago
parent
commit
c7d55c01aa
1 changed files with 3 additions and 1 deletions
  1. 3 1
      controllers/micro_roadshow.go

+ 3 - 1
controllers/micro_roadshow.go

@@ -88,7 +88,9 @@ func (this *MicroRoadShowController) List() {
 	//处理IK分词部分的分页获取条数
 	startSizeIk := utils.StartIndex(currentIndex, pageSize)
 	startSizeIk = startSizeIk - total
-
+	if startSizeIk < 0 {
+		startSizeIk = 0
+	}
 	if pageSizeIk > 0 {
 		lisIk, e := services.GetMicroRoadShowPageListIkWord(startSizeIk, pageSizeIk, audioId, videoId, activityVideoId, filter, keyWordArr, audioIds, videoIds, activityVideoIds)
 		if e != nil {