This commit is contained in:
aozhiwei 2024-02-14 08:41:39 +08:00
parent 5957e75018
commit ef3ad1898b
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import (
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"q5" "q5"
"main/common" "main/common"
"mt"
) )
func mail_getMailList(c *gin.Context) { func mail_getMailList(c *gin.Context) {
@ -61,6 +62,7 @@ func mail_getAttachment(c *gin.Context) {
*q5.NewSliceElement(&mails) = mailDto *q5.NewSliceElement(&mails) = mailDto
} }
} }
apiUrl := mt.Table.Config.GetGameApiUrl()
c.JSON(http.StatusOK, msg) c.JSON(http.StatusOK, msg)
} }

View File

@ -13,3 +13,7 @@ type ConfigTable struct {
f5.IdMetaTable[Config] f5.IdMetaTable[Config]
selfConf *Config selfConf *Config
} }
func (this *ConfigTable) GetGameApiUrl() string {
return this.selfConf.GetGameapiUrl()
}