|
@@ -46,11 +46,12 @@ func (l *ByPushHistoryLogic) ByPushHistory(req *types.SubscribeReq) (resp *types
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- if len(matchitemsArr) == 0 {
|
|
|
- matchkeys = strings.Join(matchkeysArr, ",")
|
|
|
- } else {
|
|
|
+ if len(matchitemsArr) != 0 {
|
|
|
matchitems = strings.Join(matchitemsArr, ",")
|
|
|
}
|
|
|
+ if len(matchkeysArr) != 0 {
|
|
|
+ matchkeys = strings.Join(matchkeysArr, ",")
|
|
|
+ }
|
|
|
} else {
|
|
|
matchkeys = req.KeyWords
|
|
|
}
|