正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -69,6 +69,7 @@ func (svr *PgLoginService) PartnerStaticInfo() (interface{}, error) { | @@ -69,6 +69,7 @@ func (svr *PgLoginService) PartnerStaticInfo() (interface{}, error) { | ||
| 69 | response["id"] = protocolx.AdminTypePartner | 69 | response["id"] = protocolx.AdminTypePartner |
| 70 | response["name"] = protocolx.AdminTypePartnerName | 70 | response["name"] = protocolx.AdminTypePartnerName |
| 71 | if len(svr.PartnerInfo) == 0 { | 71 | if len(svr.PartnerInfo) == 0 { |
| 72 | + response["companys"] = make([]struct{}, 0) | ||
| 72 | return response, nil | 73 | return response, nil |
| 73 | } | 74 | } |
| 74 | var ( | 75 | var ( |
| @@ -149,6 +150,7 @@ func (svr *PgLoginService) ManagerStaticInfo() (interface{}, error) { | @@ -149,6 +150,7 @@ func (svr *PgLoginService) ManagerStaticInfo() (interface{}, error) { | ||
| 149 | response["id"] = protocolx.AdminTypeManager | 150 | response["id"] = protocolx.AdminTypeManager |
| 150 | response["name"] = protocolx.AdminTypeManagerName | 151 | response["name"] = protocolx.AdminTypeManagerName |
| 151 | if len(svr.Users) == 0 { | 152 | if len(svr.Users) == 0 { |
| 153 | + response["companys"] = make([]struct{}, 0) | ||
| 152 | return response, nil | 154 | return response, nil |
| 153 | } | 155 | } |
| 154 | var ( | 156 | var ( |
-
请 注册 或 登录 后发表评论