perf: 知识库数据结构

This commit is contained in:
archer
2023-04-01 22:31:56 +08:00
parent 5759cbeae0
commit ae4243b522
26 changed files with 611 additions and 518 deletions

View File

@@ -29,8 +29,8 @@ export const connectRedis = async () => {
await global.redisClient.connect();
// 0 - 测试库,1 - 正式
await global.redisClient.select(0);
// 1 - 测试库,0 - 正式
await global.redisClient.select(process.env.NODE_ENV === 'development' ? 0 : 0);
return global.redisClient;
} catch (error) {