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

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

@ -44,7 +44,11 @@ func init() {
LogUtil.Error(ErrorConst.CreateRedisError, "Redis异常")
} else if err != nil {
LogUtil.Error(ErrorConst.CreateRedisError, err.Error())
}
}
}
func FlushAll() {
RedisClient.FlushAll()
}
//======下面的代码由黄海增加于2020-02-18=============================================================

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

Loading…
Cancel
Save