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 24, 2024
1 parent a91fe45 commit deede51
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions _worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1403,14 +1403,13 @@ async function deleteUsers(usersToDelete) {
await KV.put(userType, updatedUsers);
}
//删除用户的历史sharetoken
return await deleteShareToken(usersToDelete);
const accountNumber = await getToCheckAccountNumber(userName,'Plus');
return await deleteShareToken(usersToDelete,accountNumber);
}

async function deleteShareToken(userName) {
async function deleteShareToken(userName,accountNumber) {
const url = 'https://chat.oaifree.com/token/register';
const passed = generatePassword(userName)

const accountNumber = await getToCheckAccountNumber(userName,'Plus');
const passed = generatePassword(userName);
const accessToken = await KV.get(`at_${accountNumber}`) || '1';
/*
const tokenPrefix = await KV.get('TokenPrefix');
Expand Down

0 comments on commit deede51

Please sign in to comment.