作者 yangfu

修改:默认值

... ... @@ -69,6 +69,7 @@ func (svr *PgLoginService) PartnerStaticInfo() (interface{}, error) {
response["id"] = protocolx.AdminTypePartner
response["name"] = protocolx.AdminTypePartnerName
if len(svr.PartnerInfo) == 0 {
response["companys"] = make([]struct{}, 0)
return response, nil
}
var (
... ... @@ -149,6 +150,7 @@ func (svr *PgLoginService) ManagerStaticInfo() (interface{}, error) {
response["id"] = protocolx.AdminTypeManager
response["name"] = protocolx.AdminTypeManagerName
if len(svr.Users) == 0 {
response["companys"] = make([]struct{}, 0)
return response, nil
}
var (
... ...