作者 yangfu

增加:默认值,权限验证

@@ -96,7 +96,7 @@ func (svr *PgLoginService) PartnerStaticInfo() (interface{}, error) { @@ -96,7 +96,7 @@ func (svr *PgLoginService) PartnerStaticInfo() (interface{}, error) {
96 } 96 }
97 companyList = svr.GetCompanyList(doGetCompanyIds) 97 companyList = svr.GetCompanyList(doGetCompanyIds)
98 if len(companyList) == 0 { 98 if len(companyList) == 0 {
99 - return nil, nil 99 + return response, nil
100 } 100 }
101 totalBonus, e := OrderDao.OrderBonusStatics(domain.OrderBonusQuery{InPartnerIds: doGetPartnerIds(), OrderType: domain.OrderReal}) 101 totalBonus, e := OrderDao.OrderBonusStatics(domain.OrderBonusQuery{InPartnerIds: doGetPartnerIds(), OrderType: domain.OrderReal})
102 if e != nil { 102 if e != nil {