From 417df7710f8fa245340b390a4d1d77dad9eb32a8 Mon Sep 17 00:00:00 2001 From: satori Date: Fri, 13 Dec 2024 08:34:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BF=87=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/graphql.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/graphql.go b/api/graphql.go index 68f6900..a804815 100644 --- a/api/graphql.go +++ b/api/graphql.go @@ -46,13 +46,13 @@ func ParseToken(token string) (user_id int) { // 定时检查补全颜色字段 func CheckColorNullRows(offset int) { for { - time.Sleep(1 * time.Second) + time.Sleep(60 * time.Second) var list []struct { ID int Content string } - fmt.Println("跳过的行数:", offset) + //fmt.Println("跳过的行数:", offset) if err := db.Table("web_images").Select("id", "content").Where("article_category_top_id = 22").Where("color_0_r IS NULL").Offset(offset).Limit(100).Scan(&list).Error; err != nil { fmt.Println("定时检查补全颜色字段查询失败", err) continue