Jelajahi Sumber

feat:项目历程

wangshan 2 tahun lalu
induk
melakukan
a556a079b6
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/jfw/modules/bigmember/src/entity/followProject.go

+ 1 - 1
src/jfw/modules/bigmember/src/entity/followProject.go

@@ -256,7 +256,7 @@ func (this *ProjectFollow) GetProjectDetailBySid(sid string) (res map[string]int
 	thisList := []map[string]interface{}{}
 	thisList := []map[string]interface{}{}
 	tmpList, ok := finalDate["list"].([]interface{})
 	tmpList, ok := finalDate["list"].([]interface{})
 	if ok && len(tmpList) > 0 {
 	if ok && len(tmpList) > 0 {
-		for i := len(qutil.ObjArrToMapArr(tmpList)) - 1; i > 0; i-- {
+		for i := len(qutil.ObjArrToMapArr(tmpList)) - 1; i >= 0; i-- {
 			if len(thisList) >= 50 {
 			if len(thisList) >= 50 {
 				break
 				break
 			}
 			}