diff --git a/_worker.js b/_worker.js index fd3e6f8..baf5ca0 100644 --- a/_worker.js +++ b/_worker.js @@ -324,17 +324,18 @@ if (cookies) { } if (url.pathname === '/backend-api/accounts/check') { -const data = await response.json(); -for (const accountId in data.accounts) { -if (data.accounts[accountId].account) { -data.accounts[accountId].account.name = ${chatusername} [${aian}]; -} -} -return new Response(JSON.stringify(data), { -status: response.status, -headers: response.headers -}); + const data = await response.json(); + for (const accountId in data.accounts) { + if (data.accounts[accountId].account) { + data.accounts[accountId].account.name = `${chatusername} [${aian}]`; + } + } + return new Response(JSON.stringify(data), { + status: response.status, + headers: response.headers + }); } +return response; //初始化信息填入功能 async function handleInitialRequest(request) {