Browse Source

修改BUG

zhou.xiaoning 4 years ago
parent
commit
eedc780d9e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      controllers/ermcp/qryUser.go
  2. 1 1
      models/common.go

+ 1 - 1
controllers/ermcp/qryUser.go

@@ -58,7 +58,7 @@ type GetErmcpRolefuncMenuReq struct {
 	Mode    int `form:"mode"`
 }
 
-// GetErmcpRolefuncMenu 获取企业风管终端权限
+// GetErmcpRoleFuncMenuLists 获取企业风管终端权限
 // @Summary 获取企业风管终端权限
 // @Produce json
 // @Security ApiKeyAuth

+ 1 - 1
models/common.go

@@ -851,7 +851,7 @@ func GetErmcpRoleFuncMenuLists(loginID int, resourceCode string) ([]Funcmenulist
 		// 构建RoleID列表
 		roleIDs := ""
 		for _, areaRole := range areaRoles {
-			roleIDs += strconv.Itoa(int(areaRole.Roletype))
+			roleIDs += "," + strconv.Itoa(int(areaRole.Roletype))
 		}
 		if len(roleIDs) > 0 {
 			roleIDs = roleIDs[1:]