...
|
...
|
@@ -487,7 +487,7 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom |
|
|
for _, company := range rsp.Partner.(map[string]interface{})["companys"].([]*domain_service.Company) {
|
|
|
companies = append(companies, company)
|
|
|
}
|
|
|
rsp.Partner = companies
|
|
|
rsp.Partner.(map[string]interface{})["companys"] = companies
|
|
|
rsp.Manager.(map[string]interface{})["companys"] = []struct{}{}
|
|
|
v = map[string]interface{}{"center": rsp}
|
|
|
}
|
...
|
...
|
@@ -553,7 +553,7 @@ func CompaniesLoginByCredential(header *protocol.RequestHeader, request *protoco |
|
|
for _, company := range rsp.Partner.(map[string]interface{})["companys"].([]*domain_service.Company) {
|
|
|
companies = append(companies, company)
|
|
|
}
|
|
|
rsp.Partner = companies
|
|
|
rsp.Partner.(map[string]interface{})["companys"] = companies
|
|
|
rsp.Manager.(map[string]interface{})["companys"] = []struct{}{}
|
|
|
}
|
|
|
|
...
|
...
|
|