fix: remove debug code

This commit is contained in:
ikechan8370 2023-02-18 13:02:34 +08:00
parent d8265ba1d2
commit 1e89fe6a94

View file

@ -24,7 +24,7 @@ export async function getConversations (qq = '') {
// 老用户初次更新该功能这里频繁请求可能会429。由并行改为串行以尽量降低频率。必要时可可能还要等待。
let item = conversations.items[i]
let cachedConversationLastMessage = await redis.get(`CHATGPT:CONVERSATION_LAST_MESSAGE_PROMPT:${item.id}`)
if (!cachedConversationLastMessage) {
if (cachedConversationLastMessage) {
map[item.id] = cachedConversationLastMessage
} else {
// 缓存中没有就去查官方api