From 0dc2a2d14456671abf447dc02657a374dc15e029 Mon Sep 17 00:00:00 2001 From: satori Date: Sat, 4 Jan 2025 21:13:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E5=8F=96=E5=B1=9E=E4=BA=8E=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E7=9A=84=E4=B8=94=E9=9D=9E=E5=B0=81=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/image.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/image.go b/api/image.go index b382f50..37d9be7 100644 --- a/api/image.go +++ b/api/image.go @@ -596,8 +596,8 @@ var ImageItems = &graphql.Field{ ).As("row_num")) } - // 取所有数据的前N条 - sql, _, _ := query.Where(goqu.Ex{"article_category_top_id": 22}).ToSQL() + // 取所有数据的前N条(筛取属于游戏的且非封面的图像) + sql, _, _ := query.Where(goqu.Ex{"article_category_top_id": 22}).Where(goqu.Ex{"type": 0}).ToSQL() // 遊標截取篩選結果集的前N条 var cursor string