|
@@ -514,6 +514,17 @@ func (s *subscribePush) MakeHistoryDatas(MQFW mg.MongodbSim, PushMysql *mysql.My
|
|
|
myInsert["buyerclass"] = buyerclass_mapping
|
|
|
}
|
|
|
}
|
|
|
+ if s_subscopeclass := ObjToString(v["s_subscopeclass"]); s_subscopeclass != "" {
|
|
|
+ subscopeclass := []string{}
|
|
|
+ for _, v := range strings.Split(s_subscopeclass, ",") {
|
|
|
+ if subscopeclass_mapping, ok := PushMapping.Subscopeclass[v]; ok {
|
|
|
+ subscopeclass = append(subscopeclass, fmt.Sprint(subscopeclass_mapping))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if len(subscopeclass) > 0 {
|
|
|
+ myInsert["subscopeclass"] = strings.Join(subscopeclass, ",")
|
|
|
+ }
|
|
|
+ }
|
|
|
id := PushMysql.Insert("pushsubscribe", myInsert)
|
|
|
if id > 0 {
|
|
|
redis.Put("pushcache_2_a", redisKey, 1, 86400)
|