|
@@ -339,7 +339,7 @@ func RegMatch(fieldText map[string]interface{}, matchType []string, matchReg *Re
|
|
|
for n, arc := range ar.AndRegKid { //ar.AndRegKid若有值必不小于2
|
|
|
if indexArr := arc.CrVal.FindAllStringIndex(text, -1); len(indexArr) < 1 { //匹配失败(ar.AndRegKid中任意一个未匹配则失败)
|
|
|
break
|
|
|
- } else { //匹配成功,判断字母
|
|
|
+ } else { //匹配成功,判断字母
|
|
|
if arc.IsLetter && !CheckLetter(text, arc.CrVal, indexArr) { //reg有字母,判断是否是包含关系(AAAIBBB or AI)
|
|
|
break
|
|
|
}
|
|
@@ -722,7 +722,7 @@ func RegMatchTest(fieldText map[string]interface{}, matchType []string, matchReg
|
|
|
qu.Debug("nnnn---", n, arc.CrVal, arc.IsLetter)
|
|
|
if indexArr := arc.CrVal.FindAllStringIndex(text, -1); len(indexArr) < 1 { //匹配失败(ar.AndRegKid中任意一个未匹配则失败)
|
|
|
break
|
|
|
- } else { //匹配成功,判断字母
|
|
|
+ } else { //匹配成功,判断字母
|
|
|
if arc.IsLetter && !CheckLetter(text, arc.CrVal, indexArr) { //reg有字母,判断是否是包含关系(AAAIBBB or AI)
|
|
|
break
|
|
|
}
|
|
@@ -753,8 +753,8 @@ func RegMatchTest(fieldText map[string]interface{}, matchType []string, matchReg
|
|
|
//发布时间不在范围内(7天)不要这条数据
|
|
|
func SkipData(tmp map[string]interface{}) bool {
|
|
|
comeIn := qu.Int64All(tmp["comeintime"])
|
|
|
- if qu.Int64All(tmp["publishtime"]) > (comeIn - 7*24*60*60 ) {
|
|
|
+ if qu.Int64All(tmp["publishtime"]) > (comeIn - 7*24*60*60) {
|
|
|
return true
|
|
|
}
|
|
|
return false
|
|
|
-}
|
|
|
+}
|