|
@@ -369,7 +369,6 @@ func (s *subscribePush) MakeHistoryDatas(MQFW mg.MongodbSim, PushMysql *mysql.My
|
|
|
if area_check == "A" {
|
|
|
area_check = "全国"
|
|
|
}
|
|
|
- city_check := ObjToString(v["city"])
|
|
|
if publishTitle[area_check+title] {
|
|
|
continue
|
|
|
} else {
|
|
@@ -391,7 +390,7 @@ func (s *subscribePush) MakeHistoryDatas(MQFW mg.MongodbSim, PushMysql *mysql.My
|
|
|
myInsert["area"] = area_mapping
|
|
|
}
|
|
|
}
|
|
|
- if city_check != "" {
|
|
|
+ if city_check := ObjToString(v["city"]); city_check != "" {
|
|
|
if city_mapping, ok := PushMapping.City[city_check]; ok {
|
|
|
myInsert["city"] = city_mapping
|
|
|
}
|
|
@@ -418,7 +417,7 @@ func (s *subscribePush) MakeHistoryDatas(MQFW mg.MongodbSim, PushMysql *mysql.My
|
|
|
continue
|
|
|
}
|
|
|
array = append(array, s.InfoFormat(&PushCa{
|
|
|
- InfoId: ObjToString(v["_id"]),
|
|
|
+ InfoId: _id,
|
|
|
Date: now,
|
|
|
Index: id,
|
|
|
Keys: matchkeys,
|