mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 10:12:59 +00:00
框架升级,验证码优化,token redis存储
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
package admin
|
||||
|
||||
import (
|
||||
"gfast/boot"
|
||||
"github.com/gogf/gf/net/ghttp"
|
||||
"github.com/gogf/gf/util/gconv"
|
||||
)
|
||||
|
||||
type Index struct{}
|
||||
|
||||
func (c *Index) Index(r *ghttp.Request) {
|
||||
resp := boot.GfToken.GetTokenData(r)
|
||||
r.Response.Write("hello Index-", gconv.Map(resp.Get("data"))["user_nickname"])
|
||||
}
|
||||
Reference in New Issue
Block a user