邮件,异地登录bug

This commit is contained in:
mamengke01
2021-01-09 19:07:49 +08:00
parent e22e2b168c
commit 0f04e55b34
12 changed files with 155 additions and 45 deletions

View File

@@ -224,4 +224,14 @@ export async function clearComBtlQueue() {
}
}
export function setRedis(key: string, data: string) {
const client: Redis.RedisClient = pinus.app.get('redis');
client.setAsync(key, data);
}
export async function getRedis(key: string) {
const client: Redis.RedisClient = pinus.app.get('redis');
const str = await client.getAsync(key);
return str;
}
/**************** 寻宝相关 end */