xingzai před 1 rokem
rodič
revize
0fe28c1e48
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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 {