From faf4d3230e86990f77a5454f1467c210e4f14d04 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 29 Jun 2024 20:44:48 +0800 Subject: [PATCH] 1 --- server/nftserver/api/v1/nft/nftdetail.go | 5 +++-- server/nftserver/api/v1/nft/nftmeta.go | 4 ++-- third_party/f5 | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/server/nftserver/api/v1/nft/nftdetail.go b/server/nftserver/api/v1/nft/nftdetail.go index 035f38f7..e4fdc79c 100644 --- a/server/nftserver/api/v1/nft/nftdetail.go +++ b/server/nftserver/api/v1/nft/nftdetail.go @@ -31,7 +31,8 @@ func (this *NftDetailApi) Hero(c *gin.Context) { "token_id": tokenId, }, func (rsp f5.HttpCliResponse) { - c.String(200, rsp.GetRawData()) + c.Data(200, "application/json", []byte(rsp.GetRawData())) + //c.String(200, rsp.GetRawData()) }) } @@ -55,6 +56,6 @@ func (this *NftDetailApi) GoldBullion(c *gin.Context) { "token_id": tokenId, }, func (rsp f5.HttpCliResponse) { - c.String(200, rsp.GetRawData()) + c.Data(200, "application/json", []byte(rsp.GetRawData())) }) } diff --git a/server/nftserver/api/v1/nft/nftmeta.go b/server/nftserver/api/v1/nft/nftmeta.go index 5674c82e..ed841f02 100644 --- a/server/nftserver/api/v1/nft/nftmeta.go +++ b/server/nftserver/api/v1/nft/nftmeta.go @@ -26,7 +26,7 @@ func (this *NftMetaApi) Hero(c *gin.Context) { "token_id": tokenId, }, func (rsp f5.HttpCliResponse) { - c.String(200, rsp.GetRawData()) + c.Data(200, "application/json", []byte(rsp.GetRawData())) }) } @@ -43,7 +43,7 @@ func (this *NftMetaApi) GoldBullion(c *gin.Context) { "token_id": tokenId, }, func (rsp f5.HttpCliResponse) { - c.String(200, rsp.GetRawData()) + c.Data(200, "application/json", []byte(rsp.GetRawData())) }) } diff --git a/third_party/f5 b/third_party/f5 index 191048f4..71fae948 160000 --- a/third_party/f5 +++ b/third_party/f5 @@ -1 +1 @@ -Subproject commit 191048f40d346a983b9991f4aa9626063c77d0c9 +Subproject commit 71fae948666eb6af91d6cedf03b4251a050f4609