diff --git a/server/nftserver/api/v1/nft/nftmeta.go b/server/nftserver/api/v1/nft/nftmeta.go index 3486d214..87c4f4c3 100644 --- a/server/nftserver/api/v1/nft/nftmeta.go +++ b/server/nftserver/api/v1/nft/nftmeta.go @@ -15,7 +15,7 @@ func (this *NftMetaApi) Hero(c *gin.Context) { netId := c.Param("netId") tokenId := c.Param("tokenId") f5.GetHttpCliMgr().SendGoStyleRequest( - mt.Table.Config.GetGameApiUrl(), + mt.Table.Config.GetGameApiUrl() + "/webapp/index.php", map[string]string{ "c": "OutAppNft", "a": "nftMetaView", @@ -32,7 +32,7 @@ func (this *NftMetaApi) GoldBullion(c *gin.Context) { netId := c.Param("netId") tokenId := c.Param("tokenId") f5.GetHttpCliMgr().SendGoStyleRequest( - mt.Table.Config.GetGameApiUrl(), + mt.Table.Config.GetGameApiUrl() + "/webapp/index.php", map[string]string{ "c": "OutAppNft", "a": "nftMetaView", diff --git a/server/nftserver/mt/Config.go b/server/nftserver/mt/Config.go index 7438532d..bdcb7f55 100644 --- a/server/nftserver/mt/Config.go +++ b/server/nftserver/mt/Config.go @@ -17,3 +17,10 @@ type ConfigTable struct { func (this *ConfigTable) GetGameApiUrl() string { return this.selfConf.GetGameapiUrl() } + +func (this *ConfigTable) PostInit1() { + this.selfConf = this.GetById(int64(0)) + if this.selfConf == nil { + panic("无法读取config.json") + } +} diff --git a/third_party/f5 b/third_party/f5 index dcd28f7e..684e5481 160000 --- a/third_party/f5 +++ b/third_party/f5 @@ -1 +1 @@ -Subproject commit dcd28f7e4570617967a25072bc398fd5fe6c34a5 +Subproject commit 684e548134643975d38213c017ac4cdb5577a8c0