Bladeren bron

更新

master
huangjiajun 3 weken geleden
bovenliggende
commit
a5e05471ff
3 gewijzigde bestanden met toevoegingen van 15 en 3 verwijderingen
  1. +7
    -1
      app/svc/svc_finance_center_agent.go
  2. +7
    -1
      app/svc/svc_finance_center_medium.go
  3. +1
    -1
      go.mod

+ 7
- 1
app/svc/svc_finance_center_agent.go Bestand weergeven

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


+ 7
- 1
app/svc/svc_finance_center_medium.go Bestand weergeven

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


+ 1
- 1
go.mod Bestand weergeven

@@ -35,7 +35,7 @@ require (
require (
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/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/gin-contrib/cors v1.7.2
github.com/jinzhu/copier v0.4.0


Laden…
Annuleren
Opslaan