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