Jelajahi Sumber

feat:正文截取4

wangchuanjin 10 bulan lalu
induk
melakukan
cadc9774ce
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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)