huangjiajun pirms 1 nedēļas
vecāks
revīzija
263cb6be65
1 mainītis faili ar 7 papildinājumiem un 3 dzēšanām
  1. +7
    -3
      app/store/svc/svc_index.go

+ 7
- 3
app/store/svc/svc_index.go Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt