zhangxinlei1996 %!s(int64=2) %!d(string=hai) anos
pai
achega
da7088e784

+ 3 - 0
telemarketingEtl/entity/dwd_f_userbase_event_info.go

@@ -44,6 +44,7 @@ var (
 	AppBuyPortraitNameReg = regexp.MustCompile(".*jyapp/big/page/unit_portrayal\\?entName=(.*)")
 	PcEntPortraitNameReg  = regexp.MustCompile(".*/swordfish/page_big_pc/ent_portrait/(.*)")
 	AppEntPortraitNameReg = regexp.MustCompile(".*/jyapp/big/page/ent_portrait\\?eId=(.*)")
+	CollectionReg         = regexp.MustCompile("*frontPage/collection/sess/index")
 )
 
 func init() {
@@ -208,6 +209,8 @@ func EventInfoAdd(start, end int64) {
 							entId := util.DecodeId(eId)
 							name = GetEntNameByEntId(entId)
 						}
+					} else if CollectionReg.MatchString(url_) {
+						eventtype = COLLECTION
 					}
 					createtime := time.Unix(gconv.Int64(v["date"]), 0).Format(date.Date_Full_Layout)
 					values = append(values, userid, eventtype, name, url_, platform, createtime)

+ 2 - 0
telemarketingEtl/entity/entity.go

@@ -12,5 +12,7 @@ const (
 	BUYPORTRAIT = "采购单位画像"
 	INFO        = "标讯三级页"
 	ENTPORTRAIT = "企业画像"
+	LOGIN       = "登录"
+	COLLECTION  = "标讯收藏"
 	//TODO
 )