瀏覽代碼

更新

master
huangjiajun 6 天之前
父節點
當前提交
a5e05471ff
共有 3 個文件被更改,包括 15 次插入3 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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


Loading…
取消
儲存