This commit is contained in:
2024-12-28 06:28:07 +08:00
parent 155ce8574f
commit 6ce5885a50

View File

@@ -131,7 +131,7 @@ var CollectionItems = &graphql.Field{
t = "image" t = "image"
} }
if err := db.Table("web_collect").Select("collect_id AS id").Limit(3).Where("type = ?", item.Type).Where("explorer_id = ?", item.ID).Find(&data).Error; err != nil { if err := db.Table("web_collect").Select("collect_id AS id").Limit(3).Where("explorer_id = ?", item.ID).Find(&data).Error; err != nil {
fmt.Println("获取封面ID失败", err) fmt.Println("获取封面ID失败", err)
} }