From 263cb6be657e8fd67ce202151361c581907c187b Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 20 Sep 2025 11:02:46 +0800 Subject: [PATCH] 1 --- app/store/svc/svc_index.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/store/svc/svc_index.go b/app/store/svc/svc_index.go index 1905851..d48ead0 100644 --- a/app/store/svc/svc_index.go +++ b/app/store/svc/svc_index.go @@ -11,9 +11,13 @@ import ( func UserInfo(c *gin.Context) { store := svc.GetCampStore(c) - res := map[string]string{ - "phone": store.Phone, - "is_show_project": utils.IntToStr(store.IsShowProject), + role := []string{"comm"} + if store.IsShowProject == 1 { + role = append(role, "project") + } + res := map[string]interface{}{ + "phone": store.Phone, + "role": role, } e.OutSuc(c, res, nil) return