|
@@ -210,6 +210,7 @@ func (s *subscribePush) InfoFormat(p *PushCa, info *map[string]interface{}) *bxs
|
|
BidOpenTime: common.Int64All((*info)["bidopentime"]),
|
|
BidOpenTime: common.Int64All((*info)["bidopentime"]),
|
|
CaFileExists: p.FileExists,
|
|
CaFileExists: p.FileExists,
|
|
Source: p.Source,
|
|
Source: p.Source,
|
|
|
|
+ Site: common.InterfaceToStr((*info)["site"]),
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -683,7 +684,8 @@ func (s *subscribePush) GetJyPushs(datas []map[string]interface{}, codeMap *code
|
|
if len(iss) > 0 {
|
|
if len(iss) > 0 {
|
|
industry = iss[0]
|
|
industry = iss[0]
|
|
}
|
|
}
|
|
- //PublishTime:=common.InterfaceToStr(v["publishtime"])
|
|
|
|
|
|
+ publishTimeStr := common.InterfaceToStr(v["publishtime"])
|
|
|
|
+ publishTime, _ := time.Parse("2006-01-02 15:04:05", publishTimeStr)
|
|
subscribeInfo = append(subscribeInfo, &bxsubscribe.SubscribeInfo{
|
|
subscribeInfo = append(subscribeInfo, &bxsubscribe.SubscribeInfo{
|
|
XId: encrypt.EncodeArticleId2ByCheck(common.ObjToString(v["infoid"])),
|
|
XId: encrypt.EncodeArticleId2ByCheck(common.ObjToString(v["infoid"])),
|
|
Title: common.InterfaceToStr(v["title"]),
|
|
Title: common.InterfaceToStr(v["title"]),
|
|
@@ -691,7 +693,7 @@ func (s *subscribePush) GetJyPushs(datas []map[string]interface{}, codeMap *code
|
|
BuyerClass: buyerClass,
|
|
BuyerClass: buyerClass,
|
|
Subtype: subtype,
|
|
Subtype: subtype,
|
|
Industry: industry,
|
|
Industry: industry,
|
|
- PublishTime: common.Int64All(v["publishtime"]),
|
|
|
|
|
|
+ PublishTime: publishTime.Unix(),
|
|
CaIndex: common.Int64All(v["id"]),
|
|
CaIndex: common.Int64All(v["id"]),
|
|
CaDate: common.Int64All(v["date"]),
|
|
CaDate: common.Int64All(v["date"]),
|
|
CaIsvisit: common.Int64All(v["isvisit"]),
|
|
CaIsvisit: common.Int64All(v["isvisit"]),
|