This commit is contained in:
aozhiwei 2024-06-06 13:27:28 +08:00
parent 455120c7ca
commit 9e97f7acff
3 changed files with 10 additions and 3 deletions

View File

@ -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",

View File

@ -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")
}
}

2
third_party/f5 vendored

@ -1 +1 @@
Subproject commit dcd28f7e4570617967a25072bc398fd5fe6c34a5
Subproject commit 684e548134643975d38213c017ac4cdb5577a8c0