Browse Source

Merge branch 'dev2.8.5' of http://192.168.3.207:10080/qmx/jy into dev2.8.5

xuzhiheng 5 years ago
parent
commit
b2e74b4ec9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/jfw/modules/pushsubscribe/src/push/util/entity.go

+ 2 - 2
src/jfw/modules/pushsubscribe/src/push/util/entity.go

@@ -84,6 +84,8 @@ func NewPushParam(isLimit bool, dayCount int, mailPush bool, u *UserInfo, sl *So
 	infosLength := 0
 	isVipUser := IsVipUser(u.VipStatus)
 	for _, ks := range *sl {
+		infosLength++
+		dayCount++
 		k2 := *ks.Info
 		title := strings.Replace(k2["title"].(string), "\n", "", -1)
 		title = Re.ReplaceAllString(title, "$1")
@@ -92,7 +94,6 @@ func NewPushParam(isLimit bool, dayCount int, mailPush bool, u *UserInfo, sl *So
 			area = "全国"
 		}
 		newTitle := fmt.Sprintf("[%s]%s", area, title)
-		infosLength++
 		infos = append(infos, ks)
 		titleArray = append(titleArray, newTitle)
 		if infosLength == 1 {
@@ -169,7 +170,6 @@ func NewPushParam(isLimit bool, dayCount int, mailPush bool, u *UserInfo, sl *So
 					break
 				}
 			}
-			dayCount++
 		}
 	}
 	return &PushParam{