|
@@ -297,7 +297,7 @@ func getPushHistory(userId string) (result []*jy.SubPushList) {
|
|
|
return
|
|
|
}
|
|
|
subPush, err := jy.SubscribePush.GetSevenDayCache(userId)
|
|
|
- if err != nil && subPush != nil {
|
|
|
+ if err == nil && subPush != nil {
|
|
|
result = subPush
|
|
|
} else {
|
|
|
findSQL := "select * from pushsubscribe where userid = '" + userId + "' and date >= %d order by id desc limit 50"
|