减少日志

This commit is contained in:
2024-11-15 12:32:18 +08:00
parent 8345dfcd5f
commit c010666b8b

View File

@@ -174,7 +174,7 @@ func NewSchema(config Config) (graphql.Schema, error) {
sortedCenters[i] = c.center sortedCenters[i] = c.center
} }
fmt.Println("聚类后的颜色数量:", clusters) //fmt.Println("聚类后的颜色数量:", clusters)
if err := db.Table("web_images").Where("id = ?", item.ID).Updates(map[string]interface{}{ if err := db.Table("web_images").Where("id = ?", item.ID).Updates(map[string]interface{}{
"color_0_r": sortedCenters[0].R, "color_0_r": sortedCenters[0].R,