huangjiajun 6 days ago
parent
commit
263cb6be65
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      app/store/svc/svc_index.go

+ 7
- 3
app/store/svc/svc_index.go View File

@@ -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


Loading…
Cancel
Save