移除调试信息

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, 去除重复

View File

@@ -5,7 +5,6 @@ import (
"context"
"crypto/tls"
"encoding/json"
"fmt"
"log"
"net/http"
@@ -59,7 +58,6 @@ type SearchData struct {
func (sd SearchData) GetIDList() (id_list []string) {
for _, hit := range sd.Hits.Hits {
id_list = append(id_list, hit.ID)
fmt.Println(hit.Source.Content)
}
return id_list
}