Merge remote-tracking branch 'origin/bugfix' into bugfix
This commit is contained in:
commit
a5ad7ee2cf
@ -172,7 +172,7 @@ export class EmailFun {
|
|||||||
sendEmail.sid = uid.split('_')[0]
|
sendEmail.sid = uid.split('_')[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prize.length > 0) {
|
if (prize?.length > 0) {
|
||||||
sendEmail.prizeData = {
|
sendEmail.prizeData = {
|
||||||
prize: email.prize,
|
prize: email.prize,
|
||||||
isGet: false
|
isGet: false
|
||||||
|
@ -18,9 +18,11 @@ export async function clearGud(uid) {
|
|||||||
G.ioredis.del(`gudVersion:${uid}_pid`);
|
G.ioredis.del(`gudVersion:${uid}_pid`);
|
||||||
G.ioredis.del(`gudVersion:${uid}_ver`);
|
G.ioredis.del(`gudVersion:${uid}_ver`);
|
||||||
}
|
}
|
||||||
G.redis.del("equip",uid);
|
|
||||||
G.redis.del("hero",uid);
|
if(await G.redis.type('tanxian', uid)){
|
||||||
G.redis.del("shiwu",uid);
|
console.log('清空tanxian Redis',uid);
|
||||||
|
G.redis.del("tanxian",uid);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -60,10 +60,9 @@ export async function initRedis() {
|
|||||||
//启动前清理redis残余数据
|
//启动前清理redis残余数据
|
||||||
clusterRunOnce(async () => {
|
clusterRunOnce(async () => {
|
||||||
await clearRedis();
|
await clearRedis();
|
||||||
|
await setRedis();
|
||||||
})
|
})
|
||||||
|
|
||||||
if (G.config.cleanRedis) await redisClient.flushDb();
|
if (G.config.cleanRedis) await redisClient.flushDb();
|
||||||
await setRedis();
|
|
||||||
console.log('connect redis succ');
|
console.log('connect redis succ');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +76,7 @@ async function clearRedis() {
|
|||||||
G.redis.fromatKey('item'),
|
G.redis.fromatKey('item'),
|
||||||
G.redis.fromatKey('hero'),
|
G.redis.fromatKey('hero'),
|
||||||
G.redis.fromatKey('equip'),
|
G.redis.fromatKey('equip'),
|
||||||
//G.redis.fromatKey('shiwu'),
|
G.redis.fromatKey('shiwu'),
|
||||||
//G.redis.fromatKey('gbtx'),
|
//G.redis.fromatKey('gbtx'),
|
||||||
//G.redis.fromatKey('dxlt'),
|
//G.redis.fromatKey('dxlt'),
|
||||||
])
|
])
|
||||||
|
Loading…
Reference in New Issue
Block a user