|
|
@@ -148,7 +148,13 @@ func FinanceCenterMediumDetail(c *gin.Context, req md.CommDetailReq) md.FinanceC |
|
|
|
if 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{ |
|
|
|
Data: tmp, |
|
|
|
InvoiceCate: md.InvoiceCate, |
|
|
|