|
@@ -2,8 +2,6 @@ package util
|
|
|
|
|
|
import (
|
|
|
"bytes"
|
|
|
- "golang.org/x/text/encoding/simplifiedchinese"
|
|
|
- "golang.org/x/text/transform"
|
|
|
"io/ioutil"
|
|
|
"qfw/mongodb"
|
|
|
qu "qfw/util"
|
|
@@ -13,6 +11,9 @@ import (
|
|
|
"sort"
|
|
|
"util/chain-zhang/pinyin"
|
|
|
mgo "util/mgodb"
|
|
|
+
|
|
|
+ "golang.org/x/text/encoding/simplifiedchinese"
|
|
|
+ "golang.org/x/text/transform"
|
|
|
)
|
|
|
|
|
|
var (
|
|
@@ -63,10 +64,10 @@ var (
|
|
|
MatchTypeMap *[]map[string]interface{} //匹配方式
|
|
|
MatchTypeMap2 map[string]interface{} //匹配方式
|
|
|
MatchTypeMap3 *[]map[string]interface{} //匹配方式
|
|
|
- ExistFiled *[]map[string]interface{} //存在的字段
|
|
|
+ ExistFiled *[]map[string]interface{} //存在的字段
|
|
|
ScopeClassMap *[]map[string]interface{} //公告行业
|
|
|
- TagFieldMap *[]map[string]interface{} //标签属性值
|
|
|
- TaskTypeMap *[]map[string]interface{} //任务类型
|
|
|
+ TagFieldMap *[]map[string]interface{} //标签属性值
|
|
|
+ TaskTypeMap *[]map[string]interface{} //任务类型
|
|
|
BuryClassType map[string]interface{}
|
|
|
ProvinceMap map[string]interface{}
|
|
|
)
|
|
@@ -108,7 +109,7 @@ func InitOther() {
|
|
|
initScopeClass()
|
|
|
initTaskType()
|
|
|
initEs()
|
|
|
- initMgoEn()
|
|
|
+ // initMgoEn()
|
|
|
Subday = qu.Float64All(Sysconfig["subday"])
|
|
|
PreviewHref = qu.ObjToString(Sysconfig["preview_href"])
|
|
|
initTagField()
|