From f36441109aa0a4052d1bef48106d253c29e1f095 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 22 Jun 2024 17:42:48 +0800 Subject: [PATCH] 1 --- server/nftserver/api/v1/nft/nftmeta.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/nftserver/api/v1/nft/nftmeta.go b/server/nftserver/api/v1/nft/nftmeta.go index 87c4f4c3..5674c82e 100644 --- a/server/nftserver/api/v1/nft/nftmeta.go +++ b/server/nftserver/api/v1/nft/nftmeta.go @@ -1,8 +1,10 @@ package nft import ( + "q5" "f5" "mt" + "jccommon" "main/common" "github.com/gin-gonic/gin" ) @@ -19,8 +21,8 @@ func (this *NftMetaApi) Hero(c *gin.Context) { map[string]string{ "c": "OutAppNft", "a": "nftMetaView", - "nft_type": "hero", "net_id": netId, + "token_type": q5.ToString(jccommon.NFT_TYPE_CFHERO), "token_id": tokenId, }, func (rsp f5.HttpCliResponse) { @@ -36,8 +38,8 @@ func (this *NftMetaApi) GoldBullion(c *gin.Context) { map[string]string{ "c": "OutAppNft", "a": "nftMetaView", - "nft_type": "gold_bullion", "net_id": netId, + "token_type": q5.ToString(jccommon.NFT_TYPE_GOLD_BULLION), "token_id": tokenId, }, func (rsp f5.HttpCliResponse) {