Browse Source

no message

xingzai 1 year ago
parent
commit
0fe28c1e48
1 changed files with 2 additions and 0 deletions
  1. 2 0
      services/article.go

+ 2 - 0
services/article.go

@@ -548,6 +548,7 @@ type ReportViewRecord struct {
 func PushViewRecordNewRedisData(reportViewRecord *ReportViewRecord, companyId int) bool {
 	data := &UserViewRedisData{
 		Mobile:      reportViewRecord.Mobile,
+		UserId:      reportViewRecord.UserId,
 		Email:       reportViewRecord.Email,
 		RealName:    reportViewRecord.RealName,
 		CompanyName: reportViewRecord.CompanyName,
@@ -559,6 +560,7 @@ func PushViewRecordNewRedisData(reportViewRecord *ReportViewRecord, companyId in
 		ReportChapterId: reportViewRecord.ReportChapterId,
 		OutId:           reportViewRecord.OutId,
 	}
+
 	if utils.Re == nil {
 		err := utils.Rc.LPush(utils.CACHE_KEY_USER_VIEW, data)
 		if err != nil {