wangchuanjin преди 10 месеца
родител
ревизия
cadc9774ce
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)