This commit is contained in:
aozhiwei 2024-06-29 20:44:48 +08:00
parent 62ee401356
commit faf4d3230e
3 changed files with 6 additions and 5 deletions

View File

@ -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()))
})
}

View File

@ -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()))
})
}

2
third_party/f5 vendored

@ -1 +1 @@
Subproject commit 191048f40d346a983b9991f4aa9626063c77d0c9
Subproject commit 71fae948666eb6af91d6cedf03b4251a050f4609