huangjiajun 1周前
父节点
当前提交
263cb6be65
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. +7
    -3
      app/store/svc/svc_index.go

+ 7
- 3
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


正在加载...
取消
保存