框架升级,验证码优化,token redis存储

This commit is contained in:
yxh
2020-01-14 17:46:13 +08:00
parent 6a1be2924e
commit 1aa7f1fb0a
8 changed files with 81 additions and 39 deletions
+14
View File
@@ -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"])
}