|
|
@@ -85,7 +85,7 @@ func MediumBindAgentList(c *gin.Context) { |
|
|
|
|
|
|
|
if data != nil { |
|
|
|
for _, v := range data { |
|
|
|
tmp := md.MediumListData{ |
|
|
|
tmp1 := md.MediumListData{ |
|
|
|
Id: utils.IntToStr(v.AgentWithMedium.Id), |
|
|
|
MediumId: utils.IntToStr(v.AgentWithMedium.AgentId), |
|
|
|
CompanyName: v.AgentList.CompanyName, |
|
|
@@ -94,12 +94,13 @@ func MediumBindAgentList(c *gin.Context) { |
|
|
|
Memo: v.AgentList.Memo, |
|
|
|
LegalRepresentative: v.AgentList.LegalRepresentative, |
|
|
|
BusinessLicenseAddress: v.AgentList.BusinessLicenseAddress, |
|
|
|
BusinessLicenseImg: v.AgentList.BusinessLicenseImgUrl, |
|
|
|
} |
|
|
|
agent := NewAgentDb.GetSuperAdmin(v.AgentWithMedium.AgentId) |
|
|
|
if agent != nil { |
|
|
|
tmp.Account = agent.Username |
|
|
|
tmp1.Account = agent.Username |
|
|
|
} |
|
|
|
list = append(list, tmp) |
|
|
|
list = append(list, tmp1) |
|
|
|
} |
|
|
|
} |
|
|
|
res := md.MediumListRes{ |
|
|
@@ -281,7 +282,7 @@ func GetAgentInfo(c *gin.Context, mediumId int) map[string]string { |
|
|
|
"name": "", |
|
|
|
} |
|
|
|
NewAgentDb := implement2.NewAgentDb(MasterDb(c)) |
|
|
|
NewAgentListDb := implement.NewAgentListDb(MasterDb(c)) |
|
|
|
NewAgentListDb := implement.NewAgentListDb(db.Db) |
|
|
|
medium := NewAgentDb.GetSuperAdmin(mediumId) |
|
|
|
if medium != nil { |
|
|
|
res["account"] = medium.Username |
|
|
|