feat ✨ 验证码store支持go-admin cache

This commit is contained in:
linwenxiang committed 2021-04-07 23:01:32 +08:00
1 parent e034e5b1ea
commit eddfe26308
5 files changed
+12 -6

No files matched your search

+5
View File
@@ -20,6 +20,11 @@ import (
var store = base64Captcha.DefaultMemStore
// SetStore 设置store
func SetStore(s base64Captcha.Store) {
store = s
}
func PayloadFunc(data interface{}) jwt.MapClaims {
if v, ok := data.(map[string]interface{}); ok {
u, _ := v["user"].(SysUser)