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 56cf76e commit f842730
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f842730

Please sign in to comment.