1
This commit is contained in:
parent
168e1fc1a1
commit
57f39bfd53
@ -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) {
|
||||
|
@ -9,3 +9,8 @@ const (
|
||||
ROUTER_MGR_MODULE_IDX
|
||||
MAX_MODULE_IDX
|
||||
)
|
||||
|
||||
const (
|
||||
CONTRACT_NAME_CFHero = "CFHero"
|
||||
CONTRACT_NAME_GoldBrick = "GoldBrick"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user