Parcourir la source

feat:正文截取4

wangchuanjin il y a 10 mois
Parent
commit
cadc9774ce
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      jyBXSubscribe/rpc/model/push.go

+ 1 - 1
jyBXSubscribe/rpc/model/push.go

@@ -307,7 +307,7 @@ func subStrDetail(matchKey, detail string) string {
 		}
 		matchKeys = append(matchKeys, regexp.QuoteMeta(v))
 	}
-	if len(matchKeys) > 0 {
+	if len(matchKeys) == 0 {
 		return ""
 	}
 	indexs := regexp.MustCompile(strings.Join(matchKeys, "|")).FindStringIndex(detail)