隐藏调试

This commit is contained in:
2025-02-13 13:00:30 +08:00
parent a1c7d3c0d2
commit e6410582d2
6 changed files with 8 additions and 5 deletions

View File

@@ -207,7 +207,7 @@ var ArticleItems = &graphql.Field{
) AS LimitedRanked ON LimitedRanked.id = web_article.id
ORDER BY LimitedRanked.row_num ASC LIMIT %d
`, sql, praise, collect, text_count, cursor, limit)
fmt.Println(sql)
//fmt.Println(sql)
if err := db.Raw(sql).Scan(&articles).Error; err != nil {
fmt.Println("获取文章列表失败", err)

View File

@@ -159,7 +159,7 @@ var CollectionItems = &graphql.Field{
ORDER BY LimitedRanked.row_num ASC LIMIT %d
`, sql, fan, cursor, limit)
fmt.Println(sql)
//fmt.Println(sql)
if err := db.Raw(sql).Scan(&collects).Error; err != nil {
fmt.Println("获取游戏列表失败", err)

View File

@@ -211,7 +211,7 @@ var GameItems = &graphql.Field{
ORDER BY LimitedRanked.row_num ASC LIMIT %d
`, sql, praise, collect, text_count, cursor, limit)
fmt.Println(sql)
//fmt.Println(sql)
if err := db.Raw(sql).Scan(&games).Error; err != nil {
fmt.Println("获取游戏列表失败", err)

View File

@@ -619,7 +619,7 @@ var ImageItems = &graphql.Field{
) AS LimitedRanked ON LimitedRanked.id = web_images.id
ORDER BY LimitedRanked.row_num ASC LIMIT %d
`, sql, cursor, limit)
fmt.Println(sql)
//fmt.Println(sql)
if err := db.Raw(sql).Scan(&images).Error; err != nil {
fmt.Println("获取图像列表失败", err)

View File

@@ -187,7 +187,7 @@ var WorkItems = &graphql.Field{
ORDER BY LimitedRanked.row_num ASC LIMIT %d
`, sql, praise, collect, text_count, cursor, limit)
fmt.Println(sql)
//fmt.Println(sql)
if err := db.Raw(sql).Scan(&works).Error; err != nil {
fmt.Println("获取作品列表失败", err)