Skip to content

Commit

Permalink
fix(数据): 修复过滤语法问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
Webb-L committed Feb 20, 2024
1 parent 97fa10d commit b435ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/request/message_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func ValidateMessageRequestMiddleware() gin.HandlerFunc {
if message.Filter != "" {
var filters []MessageFilterRequest
for _, filterStr := range strings.Split(message.Filter, ",") {
filter := strings.Split(filterStr, " ")
filter := strings.SplitN(filterStr, " ", 3)
switch len(filter) {
case 1:
filters = append(filters, MessageFilterRequest{
Expand Down

0 comments on commit b435ebe

Please sign in to comment.