移除调试信息

This commit is contained in:
2023-12-03 16:05:51 +08:00
parent 7324d27bc1
commit 4b8f3c669c
2 changed files with 0 additions and 6 deletions

View File

@@ -296,10 +296,6 @@ func NewSchema(config Config) (graphql.Schema, error) {
return nil, err
}
// 打印带缩进格式化的JSON
// str, _ := json.MarshalIndent(images, "", " ")
// fmt.Println("获取图像列表成功", string(str))
// 获取用户信息(如果图像列表不为空且请求字段中包含user)
if len(images) > 0 && strings.Contains(fields_str, "user_id") {
// 取到所有的用户ID, 去除重复