feat:完善信息

This commit is contained in:
henry
2022-01-25 11:45:53 +08:00
parent 26b58e3ca6
commit 932ed31450
13 changed files with 169 additions and 45 deletions

View File

@ -81,13 +81,15 @@ func run() {
IsRate: true, Limit: config.SettingInfo.Rate.Limit, Capacity: config.SettingInfo.Rate.Capacity,
},
}).Init()),
web.WithFunction(func(src string) (bool, func(r *http.Request)) {
web.WithFunction(func(host string) (bool, func(r *http.Request)) {
// 判断
// 安全域名
_cache, _ := cache.Cache.HGet(config.RedisKeyForTenant, src)
_cache, _ := cache.Cache.HGet(config.RedisKeyForTenant, host)
if _cache == "" {
return true, nil
}
return true, nil
// 解析信息
out := new(session.Tenant)
_ = out.UnmarshalBinary([]byte(_cache))