Ver código fonte

Merge branch 'bzq/dev' of eta_mini/eta_mini_api into debug

鲍自强 1 ano atrás
pai
commit
bc58c2536f
1 arquivos alterados com 2 adições e 5 exclusões
  1. 2 5
      controllers/user.go

+ 2 - 5
controllers/user.go

@@ -579,12 +579,9 @@ func (this *UserAuthController) PermissionList() {
 			}
 		}
 	}
-	if len(privateView) == 0 {
-		br.Data = publicView
-	} else {
-		br.Data = privateView
-	}
 
+	publicView = append(publicView, privateView...)
+	br.Data = publicView
 	br.Msg = "查询成功"
 	br.Success = true
 	br.Ret = 200