|
@@ -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{
|