合并分支 'dev' 到 'test'
fix:修复数据格式错误 查看合并请求 !29
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -487,7 +487,7 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom | @@ -487,7 +487,7 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom | ||
487 | for _, company := range rsp.Partner.(map[string]interface{})["companys"].([]*domain_service.Company) { | 487 | for _, company := range rsp.Partner.(map[string]interface{})["companys"].([]*domain_service.Company) { |
488 | companies = append(companies, company) | 488 | companies = append(companies, company) |
489 | } | 489 | } |
490 | - rsp.Partner = companies | 490 | + rsp.Partner.(map[string]interface{})["companys"] = companies |
491 | rsp.Manager.(map[string]interface{})["companys"] = []struct{}{} | 491 | rsp.Manager.(map[string]interface{})["companys"] = []struct{}{} |
492 | v = map[string]interface{}{"center": rsp} | 492 | v = map[string]interface{}{"center": rsp} |
493 | } | 493 | } |
@@ -553,7 +553,7 @@ func CompaniesLoginByCredential(header *protocol.RequestHeader, request *protoco | @@ -553,7 +553,7 @@ func CompaniesLoginByCredential(header *protocol.RequestHeader, request *protoco | ||
553 | for _, company := range rsp.Partner.(map[string]interface{})["companys"].([]*domain_service.Company) { | 553 | for _, company := range rsp.Partner.(map[string]interface{})["companys"].([]*domain_service.Company) { |
554 | companies = append(companies, company) | 554 | companies = append(companies, company) |
555 | } | 555 | } |
556 | - rsp.Partner = companies | 556 | + rsp.Partner.(map[string]interface{})["companys"] = companies |
557 | rsp.Manager.(map[string]interface{})["companys"] = []struct{}{} | 557 | rsp.Manager.(map[string]interface{})["companys"] = []struct{}{} |
558 | } | 558 | } |
559 | 559 |
-
请 注册 或 登录 后发表评论