wcj 5 rokov pred
rodič
commit
dfa601b255

+ 1 - 1
src/jfw/modules/pushsubscribe/src/push/util/util.go

@@ -279,7 +279,7 @@ func SaveToPushsubscribe(isVipUser, isProjectInfo bool, userId string, matchInfo
 	}
 	//全部列表缓存
 	allCache, err := jy.SubscribePush.GetAllCache(userId)
-	if err != nil && allCache != nil {
+	if err == nil && allCache != nil {
 		subPush_datas = append(subPush_datas, allCache...)
 		if len(subPush_datas) > jy.AllSubPushCacheSize {
 			subPush_datas = subPush_datas[:jy.AllSubPushCacheSize]