|
@@ -263,20 +263,7 @@ func GetChatChannel(chat SemJsChatRecord) ChannelCategory {
|
|
|
return ChannelCategory{chat.ChannleID, chat.CategoryID}
|
|
|
}
|
|
|
// 获取神策url(包含utm)
|
|
|
- //cc1, _ := redisCli().Get("sensors:" + chat.GrUserID).Result()
|
|
|
- //var utmUrl SensorsData
|
|
|
- //json.Unmarshal([]byte(cc1), &utmUrl)
|
|
|
- // 神策解析
|
|
|
- if utmUrl.Url != "" && utmUrl.Channel > 0 && !strings.Contains(chat.ReferPage, "link=") && !strings.Contains(chat.ChatURL, "link=") {
|
|
|
- log.Printf("解析神策")
|
|
|
- chat.ChannleID = utmUrl.Channel
|
|
|
- chat.CategoryID = utmUrl.Category
|
|
|
- // 百度惠生活渠道合并
|
|
|
- if chat.CategoryID == 239 {
|
|
|
- chat.CategoryID = getCategory(292, chat.JsonPath)
|
|
|
- }
|
|
|
- return ChannelCategory{chat.ChannleID, chat.CategoryID}
|
|
|
- }
|
|
|
+
|
|
|
// 搜索引擎SEO,外链解析
|
|
|
if chat.ReferPage != "" && !strings.Contains(chat.ReferPage, "https://www.jjl.cn/") && !strings.Contains(chat.ReferPage, "https://m.jjl.cn/") {
|
|
|
log.Printf("解析SEO")
|