소스 검색

Merge branch 'dev/v1.1.18.2_wh' of BaseService/jyMicroservices into hotfix/v1.1.18.2

zhangxinlei1996 2 년 전
부모
커밋
aba9cdbaea
2개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. 4 3
      jyBXSubscribe/api/internal/logic/byPushHistoryLogic.go
  2. 4 3
      jyBXSubscribe/api/internal/logic/subscribeListLogic.go

+ 4 - 3
jyBXSubscribe/api/internal/logic/byPushHistoryLogic.go

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

+ 4 - 3
jyBXSubscribe/api/internal/logic/subscribeListLogic.go

@@ -48,11 +48,12 @@ func (l *SubscribeListLogic) SubscribeList(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
 	}