wangshan преди 2 години
родител
ревизия
a556a079b6
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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{}{}
 	tmpList, ok := finalDate["list"].([]interface{})
 	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 {
 				break
 			}