减少日志

This commit is contained in:
2024-11-14 20:13:38 +08:00
parent ff087a0b16
commit 84a2ee3bce

View File

@@ -119,7 +119,6 @@ func NewSchema(config Config) (graphql.Schema, error) {
fmt.Println("定时检查补全颜色字段查询失败", err)
continue
}
fmt.Println("定时检查补全颜色字段查询成功", list)
for index, item := range list {
matches := regexp.MustCompile(`^https?://image\.gameuiux\.cn/(.*)`).FindStringSubmatch(item.Content)
if len(matches) < 2 {
@@ -127,7 +126,8 @@ func NewSchema(config Config) (graphql.Schema, error) {
continue
}
// 打开图像文件
file, err := os.Open("oss/" + matches[1])
filepath := "oss/" + matches[1]
file, err := os.Open(filepath)
if err != nil {
fmt.Println("打开文件失败", index, item.ID, item.Content, err)
continue
@@ -153,7 +153,7 @@ func NewSchema(config Config) (graphql.Schema, error) {
fmt.Println("更新颜色字段失败", index, item.ID, item.Content, err)
continue
}
fmt.Println("更新图像颜色索引成功", item.ID, item.Content, centers)
fmt.Println("更新颜色索引:", item.ID, filepath)
}
}
}