菜单添加

This commit is contained in:
yxh
2020-01-16 18:08:46 +08:00
parent 1aa7f1fb0a
commit 6600588bfa
14 changed files with 661 additions and 23 deletions
+3 -1
View File
@@ -2,6 +2,7 @@ package admin
import (
"gfast/boot"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/net/ghttp"
"github.com/gogf/gf/util/gconv"
)
@@ -9,6 +10,7 @@ import (
type Index struct{}
func (c *Index) Index(r *ghttp.Request) {
resp := boot.GfToken.GetTokenData(r)
resp := boot.AdminGfToken.GetTokenData(r)
g.Log().Debug(r.Router.Uri)
r.Response.Write("hello Index-", gconv.Map(resp.Get("data"))["user_nickname"])
}