xingzai 1 год назад
Родитель
Сommit
446fa41340
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      services/page_history_record.go

+ 2 - 1
services/page_history_record.go

@@ -45,7 +45,8 @@ func AddCygxPageHistoryRecord(user *models.WxUserItem, Ctx *context.Context) {
 		//	return
 		//}
 
-		cacheKey := fmt.Sprint("uid:", user.UserId, "_Parameter:", item.Parameter)
+		sliceParameter := strings.Split(item.Parameter, "&PageRouter=")
+		cacheKey := fmt.Sprint("uid:", user.UserId, "_Parameter:", sliceParameter[0])
 		isExist := utils.Rc.IsExist(cacheKey)
 		if isExist {
 			return