Explorar o código

feat:正文截取4

wangchuanjin hai 10 meses
pai
achega
cadc9774ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)