mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 18:20:47 +00:00
菜单添加
This commit is contained in:
@@ -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"])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user