1
This commit is contained in:
parent
455120c7ca
commit
9e97f7acff
@ -15,7 +15,7 @@ func (this *NftMetaApi) Hero(c *gin.Context) {
|
|||||||
netId := c.Param("netId")
|
netId := c.Param("netId")
|
||||||
tokenId := c.Param("tokenId")
|
tokenId := c.Param("tokenId")
|
||||||
f5.GetHttpCliMgr().SendGoStyleRequest(
|
f5.GetHttpCliMgr().SendGoStyleRequest(
|
||||||
mt.Table.Config.GetGameApiUrl(),
|
mt.Table.Config.GetGameApiUrl() + "/webapp/index.php",
|
||||||
map[string]string{
|
map[string]string{
|
||||||
"c": "OutAppNft",
|
"c": "OutAppNft",
|
||||||
"a": "nftMetaView",
|
"a": "nftMetaView",
|
||||||
@ -32,7 +32,7 @@ func (this *NftMetaApi) GoldBullion(c *gin.Context) {
|
|||||||
netId := c.Param("netId")
|
netId := c.Param("netId")
|
||||||
tokenId := c.Param("tokenId")
|
tokenId := c.Param("tokenId")
|
||||||
f5.GetHttpCliMgr().SendGoStyleRequest(
|
f5.GetHttpCliMgr().SendGoStyleRequest(
|
||||||
mt.Table.Config.GetGameApiUrl(),
|
mt.Table.Config.GetGameApiUrl() + "/webapp/index.php",
|
||||||
map[string]string{
|
map[string]string{
|
||||||
"c": "OutAppNft",
|
"c": "OutAppNft",
|
||||||
"a": "nftMetaView",
|
"a": "nftMetaView",
|
||||||
|
@ -17,3 +17,10 @@ type ConfigTable struct {
|
|||||||
func (this *ConfigTable) GetGameApiUrl() string {
|
func (this *ConfigTable) GetGameApiUrl() string {
|
||||||
return this.selfConf.GetGameapiUrl()
|
return this.selfConf.GetGameapiUrl()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *ConfigTable) PostInit1() {
|
||||||
|
this.selfConf = this.GetById(int64(0))
|
||||||
|
if this.selfConf == nil {
|
||||||
|
panic("无法读取config.json")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
2
third_party/f5
vendored
2
third_party/f5
vendored
@ -1 +1 @@
|
|||||||
Subproject commit dcd28f7e4570617967a25072bc398fd5fe6c34a5
|
Subproject commit 684e548134643975d38213c017ac4cdb5577a8c0
|
Loading…
x
Reference in New Issue
Block a user