|
@@ -228,7 +228,13 @@ func (m *Follow) Photo(tp string) error {
|
|
|
m.T["type"] = (*data)["type"]
|
|
|
}
|
|
|
}
|
|
|
- m.T["relationinfo"] = (*data)["a_relationinfo"]
|
|
|
+ res := util.ObjArrToMapArr((*data)["a_relationinfo"].([]interface{}))
|
|
|
+ if len(res) > 0 {
|
|
|
+ for _, v := range res {
|
|
|
+ v["s_id"] = ""
|
|
|
+ }
|
|
|
+ m.T["relationinfo"] = res
|
|
|
+ }
|
|
|
m.T["a_visited"] = (*data)["a_visited"]
|
|
|
m.T["l_lastpushtime"] = (*data)["l_lastpushtime"]
|
|
|
m.T["a_lastpushids"] = (*data)["a_lastpushids"]
|
|
@@ -262,7 +268,7 @@ func (m *Follow) Photo(tp string) error {
|
|
|
mySelf["area"] = (*data)["area"]
|
|
|
mySelf["s_projectcode"] = projectcode
|
|
|
mySelf["s_url"] = (*data)["href"]
|
|
|
- mySelf["s_id"] = id
|
|
|
+ mySelf["s_id"] = "" //id
|
|
|
mySelf["s_eid"] = util.EncodeArticleId2ByCheck(id)
|
|
|
mySelf["l_publishtime"] = (*data)["publishtime"]
|
|
|
if (*data)["industry"] == nil && (*data)["s_subscopeclass"] != nil {
|
|
@@ -301,6 +307,7 @@ func (m *Follow) Photo(tp string) error {
|
|
|
if len(res) > 0 {
|
|
|
for _, v := range res {
|
|
|
(*v)["s_eid"] = util.EncodeArticleId2ByCheck((*v)["s_id"].(string))
|
|
|
+ (*v)["s_id"] = ""
|
|
|
}
|
|
|
m.T["data"] = res
|
|
|
}
|
|
@@ -601,7 +608,7 @@ func (m *Follow) Set(tp, id string) error {
|
|
|
mySelf["area"] = (*data)["area"]
|
|
|
mySelf["s_projectcode"] = projectcode
|
|
|
mySelf["s_url"] = (*data)["href"]
|
|
|
- mySelf["s_id"] = sid
|
|
|
+ mySelf["s_id"] = "" //sid
|
|
|
mySelf["s_eid"] = util.EncodeArticleId2ByCheck(sid)
|
|
|
mySelf["l_publishtime"] = (*data)["publishtime"]
|
|
|
////////////////////////
|
|
@@ -635,6 +642,7 @@ func (m *Follow) Set(tp, id string) error {
|
|
|
if len(res) > 0 || len(mySelf) > 0 {
|
|
|
for _, v := range res {
|
|
|
(*v)["s_eid"] = util.EncodeArticleId2ByCheck((*v)["s_id"].(string))
|
|
|
+ (*v)["s_id"] = ""
|
|
|
}
|
|
|
m.T["data"] = res
|
|
|
}
|
|
@@ -657,7 +665,13 @@ func (m *Follow) Set(tp, id string) error {
|
|
|
m.T["type"] = (*data)["type"]
|
|
|
}
|
|
|
}
|
|
|
- m.T["relationinfo"] = (*data)["a_relationinfo"]
|
|
|
+ res := util.ObjArrToMapArr((*data)["a_relationinfo"].([]interface{}))
|
|
|
+ if len(res) > 0 {
|
|
|
+ for _, v := range res {
|
|
|
+ v["s_id"] = ""
|
|
|
+ }
|
|
|
+ m.T["relationinfo"] = res
|
|
|
+ }
|
|
|
m.T["a_visited"] = (*data)["a_visited"]
|
|
|
m.T["l_lastpushtime"] = (*data)["l_lastpushtime"]
|
|
|
m.T["a_lastpushids"] = (*data)["a_lastpushids"]
|