开服:新增版号服
This commit is contained in:
@@ -63,11 +63,11 @@ declare module 'redis' {
|
||||
}
|
||||
}
|
||||
|
||||
export function connectRedis(redisArr: string) {
|
||||
export function connectRedis(redisArr: string, redisPw: string) {
|
||||
|
||||
// 创建 redis 连接
|
||||
const oldRedisClient = Redis.createClient(6379, redisArr, {detect_buffers: true});
|
||||
oldRedisClient.auth('zyz_2020', (err, reply) => {
|
||||
oldRedisClient.auth(redisPw, (err, reply) => {
|
||||
if (err) {
|
||||
console.log('redis err', err);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user