commit
continuous-integration/drone/push Build is passing Details

master
黄海 4 years ago
parent 6ee5272665
commit 0f14a942f3

@ -47,6 +47,10 @@ func init() {
} }
} }
func FlushAll() {
RedisClient.FlushAll()
}
//======下面的代码由黄海增加于2020-02-18============================================================= //======下面的代码由黄海增加于2020-02-18=============================================================
/** /**
redisHash redisHash

@ -27,6 +27,9 @@ import (
2020-03-25 2020-03-25
*/ */
func startOAuth2Server() { func startOAuth2Server() {
//清空Redis
RedisUtil.FlushAll()
//声明OAuth2的Redis存储器 //声明OAuth2的Redis存储器
RedisStorage.OAuth2RedisStorage = &RedisStorage.RedisStorage{ RedisStorage.OAuth2RedisStorage = &RedisStorage.RedisStorage{
Pool: RedisUtil.Pool, Pool: RedisUtil.Pool,

Loading…
Cancel
Save