Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmliu committed Nov 28, 2024
1 parent eb859af commit 5a911f6
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions _worker.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,23 +136,7 @@ export default {
let pagesSum = UD;
let workersSum = UD;
let total = 24 * 1099511627776 ;
if (env.CFEMAIL && env.CFKEY){
const email = env.CFEMAIL;
const key = env.CFKEY;
const accountIndex = env.CFID || 0;
const accountId = await getAccountId(email, key);
if (accountId){
const now = new Date()
now.setUTCHours(0, 0, 0, 0)
const startDate = now.toISOString()
const endDate = new Date().toISOString();
const Sum = await getSum(accountId, accountIndex, email, key, startDate, endDate);
pagesSum = Sum[0];
workersSum = Sum[1];
total = 102400 ;
}
}
//console.log(`pagesSum: ${pagesSum}\nworkersSum: ${workersSum}\ntotal: ${total}`);

if (userAgent && (userAgent.includes('mozilla') || userAgent.includes('subconverter'))){
return new Response(`${trojanConfig}`, {
status: 200,
Expand Down

0 comments on commit 5a911f6

Please sign in to comment.