feat:完善信息
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user