@@ -145,7 +145,13 @@ func FinanceCenterAgentDetail(c *gin.Context, req md.CommDetailReq) md.FinanceCe | |||||
if tmpAgent["account"] != "" { | if tmpAgent["account"] != "" { | ||||
tmp.Account = tmpAgent["account"] | tmp.Account = tmpAgent["account"] | ||||
} | } | ||||
tmp.DownUrl = "http://" + c.Request.Host + "/api/agent/settle/file/down?id=" + utils.IntToStr(data.Id) | |||||
NewUserAppDomainDb := implement.NewUserAppDomainDb(db.Db) | |||||
domain, _ := NewUserAppDomainDb.GetUserAppDomainByPlatform(utils.StrToInt(c.GetString("mid")), "admin") | |||||
host := c.Request.Host | |||||
if domain != nil { | |||||
host = domain.Domain | |||||
} | |||||
tmp.DownUrl = "http://" + host + "/api/agent/settle/file/down?id=" + utils.IntToStr(data.Id) | |||||
res := md.FinanceCenterDataAgentDetailRes{ | res := md.FinanceCenterDataAgentDetailRes{ | ||||
Data: tmp, | Data: tmp, | ||||
@@ -148,7 +148,13 @@ func FinanceCenterMediumDetail(c *gin.Context, req md.CommDetailReq) md.FinanceC | |||||
if tmpMedium["account"] != "" { | if tmpMedium["account"] != "" { | ||||
tmp.Account = tmpMedium["account"] | tmp.Account = tmpMedium["account"] | ||||
} | } | ||||
tmp.DownUrl = "http://" + c.Request.Host + "/api/medium/settle/file/down?id=" + utils.IntToStr(data.Id) | |||||
NewUserAppDomainDb := implement.NewUserAppDomainDb(db.Db) | |||||
domain, _ := NewUserAppDomainDb.GetUserAppDomainByPlatform(utils.StrToInt(c.GetString("mid")), "admin") | |||||
host := c.Request.Host | |||||
if domain != nil { | |||||
host = domain.Domain | |||||
} | |||||
tmp.DownUrl = "http://" + host + "/api/medium/settle/file/down?id=" + utils.IntToStr(data.Id) | |||||
res := md.FinanceCenterDataDetailRes{ | res := md.FinanceCenterDataDetailRes{ | ||||
Data: tmp, | Data: tmp, | ||||
InvoiceCate: md.InvoiceCate, | InvoiceCate: md.InvoiceCate, | ||||
@@ -35,7 +35,7 @@ require ( | |||||
require ( | require ( | ||||
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | ||||
code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git v1.1.21-0.20240830072333-a1980ffb256e | code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git v1.1.21-0.20240830072333-a1980ffb256e | ||||
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241030025944-2a0971f8eb9d | |||||
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241030071009-67f1ca108f52 | |||||
github.com/360EntSecGroup-Skylar/excelize v1.4.1 | github.com/360EntSecGroup-Skylar/excelize v1.4.1 | ||||
github.com/gin-contrib/cors v1.7.2 | github.com/gin-contrib/cors v1.7.2 | ||||
github.com/jinzhu/copier v0.4.0 | github.com/jinzhu/copier v0.4.0 | ||||