|
@@ -55,15 +55,13 @@ type SubPush struct {
|
|
|
}
|
|
|
|
|
|
type PushCa struct {
|
|
|
- Date int64
|
|
|
- InfoId string
|
|
|
- Visit int
|
|
|
- Index int64
|
|
|
- Keys []string
|
|
|
- Type int
|
|
|
- Isvip int
|
|
|
- Budget interface{}
|
|
|
- Bidamount interface{}
|
|
|
+ Date int64
|
|
|
+ InfoId string
|
|
|
+ Visit int
|
|
|
+ Index int64
|
|
|
+ Keys []string
|
|
|
+ Type int
|
|
|
+ Isvip int
|
|
|
}
|
|
|
|
|
|
var SubscribePush = &subscribePush{}
|
|
@@ -144,8 +142,6 @@ func (s *subscribePush) InfoFormat(p *PushCa, info *map[string]interface{}) *Sub
|
|
|
Ca_isvip: p.Isvip,
|
|
|
Ca_type: p.Type,
|
|
|
Matchkeys: p.Keys,
|
|
|
- Budget: p.Budget,
|
|
|
- Bidamount: p.Bidamount,
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -250,15 +246,13 @@ func (s *subscribePush) GetJyPushs(datas []map[string]interface{}) (pushCas []*P
|
|
|
pushCas = []*PushCa{}
|
|
|
for _, v := range datas {
|
|
|
pushCas = append(pushCas, &PushCa{
|
|
|
- Date: Int64All(v["date"]),
|
|
|
- InfoId: ObjToString(v["infoid"]),
|
|
|
- Visit: IntAll(v["isvisit"]),
|
|
|
- Index: Int64All(v["id"]),
|
|
|
- Keys: strings.Split(ObjToString(v["matchkeys"]), " "),
|
|
|
- Type: IntAll(v["type"]),
|
|
|
- Isvip: IntAll(v["isvip"]),
|
|
|
- Budget: v["budget"],
|
|
|
- Bidamount: v["bidamount"],
|
|
|
+ Date: Int64All(v["date"]),
|
|
|
+ InfoId: ObjToString(v["infoid"]),
|
|
|
+ Visit: IntAll(v["isvisit"]),
|
|
|
+ Index: Int64All(v["id"]),
|
|
|
+ Keys: strings.Split(ObjToString(v["matchkeys"]), " "),
|
|
|
+ Type: IntAll(v["type"]),
|
|
|
+ Isvip: IntAll(v["isvip"]),
|
|
|
})
|
|
|
}
|
|
|
return
|