aa
This commit is contained in:
@@ -86,7 +86,7 @@ func GetRole(ctx *jxcontext.Context, name string) (roles []*model.Role, err erro
|
||||
var (
|
||||
db = dao.GetDB()
|
||||
)
|
||||
roles, err := dao.GetRole(db, name, "")
|
||||
roles, err = dao.GetRole(db, name, "")
|
||||
for _, v := range roles {
|
||||
if v.CityCodes != "" {
|
||||
if cityInfos, err := dao.GetPlaces(db, jxutils.StrListToIntList(strings.Split(v.CityCodes, ","))); err == nil {
|
||||
@@ -99,7 +99,7 @@ func GetRole(ctx *jxcontext.Context, name string) (roles []*model.Role, err erro
|
||||
}
|
||||
}
|
||||
}
|
||||
return getRoleResults, err
|
||||
return roles, err
|
||||
}
|
||||
|
||||
func AddRole(ctx *jxcontext.Context, name string) (err error) {
|
||||
|
||||
Reference in New Issue
Block a user