Browse Source

赋值处理

WH01243 2 năm trước cách đây
mục cha
commit
8683d3276d

+ 1 - 1
jyBXSubscribe/api/internal/logic/byPushHistoryLogic.go

@@ -51,7 +51,7 @@ func (l *ByPushHistoryLogic) ByPushHistory(req *types.SubscribeReq) (resp *types
 		}
 		if len(matchkeysArr) != 0 {
 			matchkeys = strings.Join(matchkeysArr, ",")
-			strings.ReplaceAll(matchkeys, " ", ",")
+			matchkeys = strings.ReplaceAll(matchkeys, " ", ",")
 		}
 	} else {
 		matchkeys = req.KeyWords

+ 2 - 1
jyBXSubscribe/api/internal/logic/subscribeListLogic.go

@@ -53,7 +53,8 @@ func (l *SubscribeListLogic) SubscribeList(req *types.SubscribeReq) (resp *types
 		}
 		if len(matchkeysArr) != 0 {
 			matchkeys = strings.Join(matchkeysArr, ",")
-			strings.ReplaceAll(matchkeys, " ", ",")
+			matchkeys=strings.ReplaceAll(matchkeys, " ", ",")
+		}
 		}
 	} else {
 		matchkeys = req.KeyWords