mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: add api3 debug text output
This commit is contained in:
parent
713edac1d2
commit
d8b415f58a
1 changed files with 6 additions and 1 deletions
|
|
@ -17,7 +17,12 @@ export async function getConversations (qq = '') {
|
||||||
if (Config.debug) {
|
if (Config.debug) {
|
||||||
logger.mark(json)
|
logger.mark(json)
|
||||||
}
|
}
|
||||||
let conversations = JSON.parse(json)
|
let conversations
|
||||||
|
try {
|
||||||
|
conversations = JSON.parse(json)
|
||||||
|
} catch (e) {
|
||||||
|
throw new Error(json)
|
||||||
|
}
|
||||||
let result = conversations.items?.sort((a, b) => b.create_time - a.create_time)
|
let result = conversations.items?.sort((a, b) => b.create_time - a.create_time)
|
||||||
let map = {}
|
let map = {}
|
||||||
for (let i = 0; i < conversations.items.length; i++) {
|
for (let i = 0; i < conversations.items.length; i++) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue