This commit is contained in:
aozhiwei 2024-06-20 10:35:59 +08:00
parent 168e1fc1a1
commit 57f39bfd53
2 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,8 @@
package nft
import (
"main/constant"
"q5"
"f5"
"mt"
"github.com/gin-gonic/gin"
@ -11,15 +13,19 @@ type NftDetailApi struct {
}
func (this *NftDetailApi) Hero(c *gin.Context) {
netId := c.Param("netId")
netId := q5.ToInt32(c.Param("netId"))
tokenId := c.Param("tokenId")
contractMeta := mt.Table.Contract.GetByNetIdName(netId, constant.CONTRACT_NAME_CFHero)
if contractMeta == nil {
}
f5.GetHttpCliMgr().SendGoStyleRequest(
mt.Table.Config.GetGameApiUrl() + "/webapp/index.php",
map[string]string{
"c": "OutAppNft",
"a": "nftDetail",
"nft_type": "hero",
"net_id": netId,
"net_id": q5.ToString(netId),
"token_id": tokenId,
},
func (rsp f5.HttpCliResponse) {

View File

@ -9,3 +9,8 @@ const (
ROUTER_MGR_MODULE_IDX
MAX_MODULE_IDX
)
const (
CONTRACT_NAME_CFHero = "CFHero"
CONTRACT_NAME_GoldBrick = "GoldBrick"
)