Explorar el Código

feat:增加字段

wangchuanjin hace 1 año
padre
commit
1e42de17db
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 1
      matcher/paymatch.go
  2. 1 0
      p/public.go

+ 1 - 1
matcher/paymatch.go

@@ -94,7 +94,7 @@ func (p *PayUser) ToMatch(info map[string]interface{}) (*map[*UserInfo]*MatchUse
 		}
 	}
 	//匹配附件
-	if p.Detail_KeyDfa != nil {
+	if p.Filetext_KeyDfa != nil {
 		if filetext, _ := info["filetext"].(string); filetext != "" {
 			filetext = strings.ToUpper(filetext)
 			keys := p.Filetext_KeyDfa.Key.Analy(filetext)

+ 1 - 0
p/public.go

@@ -261,6 +261,7 @@ func LoadBidding(mgo *MongodbSim, dbName, coll string, startTime int64, redisCac
 		"bidendtime":      1,
 		"entidlist":       1,
 		"autoid":          1,
+		"filetext":        1,
 	}
 	if fields == nil {
 		for k, v := range fields {