Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

中文版Telegram code未更新 #60

Open
reece762 opened this issue Jan 4, 2025 · 0 comments
Open

中文版Telegram code未更新 #60

reece762 opened this issue Jan 4, 2025 · 0 comments

Comments

@reece762
Copy link

reece762 commented Jan 4, 2025

https://github.com/canaria3406/hoyolab-auto-sign/blob/main/src/main-telegram_zh-tw.gs

91-97行
var sleepTime = 0
const httpResponses = []
for (const url of urls) {
Utilities.sleep(sleepTime);
httpResponses.push(UrlFetchApp.fetch(url, options));
sleepTime = 1000;
}

應改爲
var sleepTime = 0
const httpResponses = []
for (const urlnheaders of urlsnheaders) {
Utilities.sleep(sleepTime);
httpResponses.push(UrlFetchApp.fetch(urlnheaders.url, { ...options, headers: urlnheaders.headers }));
sleepTime = 1000;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant