Skip to content

Commit

Permalink
Update _worker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jyx04 authored Jun 21, 2024
1 parent 24a7e0f commit 56cf76e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,18 @@ if (cookies) {
return response;
}

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
});
}

//初始化信息填入功能
async function handleInitialRequest(request) {
Expand Down

0 comments on commit 56cf76e

Please sign in to comment.