Sfoglia il codice sorgente

feat:p510 bigmember 超级订阅保存画像记录

fuwencai 1 anno fa
parent
commit
ae92fc5add

+ 12 - 0
src/jfw/modules/bigmember/src/service/portrait/subvipPortraitAction.go

@@ -49,6 +49,18 @@ func (this *SubVipPortrait) SubVipEntDetail() {
 		if entId == "" {
 			return nil, fmt.Errorf("参数异常")
 		}
+		if userId != "" {
+			// p510 保存浏览记录
+			if userId != "" {
+				entName := entity.GetEntNameById(entId)
+				if entName != "" {
+					go func() {
+						redisKey := util.HistoryRedisKeyMap[util.TypeEntView]
+						util.SaveHistory(fmt.Sprintf("%s_%s", entName, this.GetString("entId")), userId, redisKey)
+					}()
+				}
+			}
+		}
 		cepm, equity, err, _ := entity.CreateSubVipPortraitManager(userId, "entDetail", entId, true, this.Session())
 		if err != nil {
 			return nil, err