From 167ab1956056bd0f267df78e3d7ea38b2c1e4715 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 3 Jun 2024 19:31:32 +0800 Subject: [PATCH] 1 --- server/nftserver/api/v1/nft/nftmeta.go | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/server/nftserver/api/v1/nft/nftmeta.go b/server/nftserver/api/v1/nft/nftmeta.go index 02a9a7ca..194fb063 100644 --- a/server/nftserver/api/v1/nft/nftmeta.go +++ b/server/nftserver/api/v1/nft/nftmeta.go @@ -1,6 +1,8 @@ package nft import ( + "f5" + "mt" "github.com/gin-gonic/gin" ) @@ -9,23 +11,21 @@ type NftMetaApi struct { } func (this *NftMetaApi) Hero(c *gin.Context) { - rspObj := struct { - ErrCode int32 `json:"errcode"` - ErrMsg string `json:"errmsg"` - }{ - ErrCode: 0, - ErrMsg: "", - } - c.JSON(200, rspObj) + f5.GetHttpCliMgr().SyncSendGoStyleRequest( + mt.Table.Config.GetGameApiUrl(), + map[string]string{ + "c": "OutAppNft", + }, + func (rsp f5.HttpCliResponse) { + }) } func (this *NftMetaApi) GoldBullion(c *gin.Context) { - rspObj := struct { - ErrCode int32 `json:"errcode"` - ErrMsg string `json:"errmsg"` - }{ - ErrCode: 0, - ErrMsg: "", - } - c.JSON(200, rspObj) + f5.GetHttpCliMgr().SyncSendGoStyleRequest( + mt.Table.Config.GetGameApiUrl(), + map[string]string{ + "c": "OutAppNft", + }, + func (rsp f5.HttpCliResponse) { + }) }