From efa0278da816e0abf80350711949382eaaf68892 Mon Sep 17 00:00:00 2001 From: Tobeyw Date: Tue, 19 Dec 2023 16:57:02 +0800 Subject: [PATCH] add log --- neo3fura_http/biz/api/src.GetInfoByNFT.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/neo3fura_http/biz/api/src.GetInfoByNFT.go b/neo3fura_http/biz/api/src.GetInfoByNFT.go index 81c1893..2945fed 100644 --- a/neo3fura_http/biz/api/src.GetInfoByNFT.go +++ b/neo3fura_http/biz/api/src.GetInfoByNFT.go @@ -2,6 +2,7 @@ package api import ( "encoding/json" + "fmt" "go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson/primitive" "io/ioutil" @@ -245,7 +246,7 @@ func GetNNSByAddress(address string) (string, string, error) { } else if rt == "test" { url = "https://megaoasis.ngd.network:8889/profile/get?address=" //test } - + fmt.Println(url) resp, err := http.Get(url + address) if err != nil { return "", "", err @@ -253,6 +254,7 @@ func GetNNSByAddress(address string) (string, string, error) { defer resp.Body.Close() body, err := ioutil.ReadAll(resp.Body) var nns, userName string + fmt.Println("body:", string(body)) if string(body) != "" && string(body) != "null" { var data map[string]interface{} err = json.Unmarshal(body, &data)