修正收集阅读行为

This commit is contained in:
2025-01-04 21:05:13 +08:00
parent bf678b7440
commit 59d28e6803

View File

@@ -327,8 +327,8 @@ var ImageItems = &graphql.Field{
feedbacks := []client.Feedback{{ feedbacks := []client.Feedback{{
FeedbackType: "read", FeedbackType: "read",
UserId: fmt.Sprintf("%s", user_id), UserId: strconv.Itoa(user_id),
ItemId: fmt.Sprintf("%s", p.Args["Similar"]), ItemId: strconv.Itoa(p.Args["similar"].(int)),
Timestamp: time.Now().Format("2006-01-02 15:04:05"), Timestamp: time.Now().Format("2006-01-02 15:04:05"),
}} }}