WeightKeyword2

This commit is contained in:
jiangyong27 2025-04-09 20:21:31 +08:00
parent 84bd7614b8
commit 41cca94393
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ func Reverse(s interface{}) {
} }
func WeightKeyword(keywords string) string { func WeightKeyword(keywords string) string {
keywords = strings.ReplaceAll(keywords, "", ",")
keywords = strings.ReplaceAll(keywords, "", ":")
fields := strings.Split(keywords, ",") fields := strings.Split(keywords, ",")
if len(fields) == 1 { if len(fields) == 1 {
return keywords return keywords