Browse Source

fix-489后端部分

tags/v1.21.11.1
ychao_1983 3 years ago
parent
commit
c335941d10
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/topic.go

+ 1
- 1
models/topic.go View File

@@ -178,7 +178,7 @@ func (opts *FindTopicOptions) toConds() builder.Cond {
} }


if opts.Keyword != "" { if opts.Keyword != "" {
cond = cond.And(builder.Like{"topic.name", opts.Keyword})
cond = cond.And(builder.Like{"topic.name", strings.ToLower(opts.Keyword)})
} }


return cond return cond


Loading…
Cancel
Save