Skip to content

Commit

Permalink
Update worker.js
Browse files Browse the repository at this point in the history
Signed-off-by: 范明明 <[email protected]>
  • Loading branch information
fanmingming authored May 31, 2024
1 parent 018ec72 commit 8143f66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function fetchHandler(event) {
const dateParam = url.searchParams.get("date");
const date = formatDateTime(dateParam ? dateParam.replace(/\D+/g, '') : '').date;

if (parseInt(date.replace(/-/g, '')) >= 20240214) {
if (parseInt(date.replace(/-/g, '')) >= 20240531) {
return diypHandle(channel, date, request);
} else {
return makeRes(JSON.stringify({
Expand All @@ -82,4 +82,4 @@ async function fetchHandler(event) {

addEventListener('fetch', event => {
event.respondWith(fetchHandler(event).catch(err => makeRes(`error:\n${err.stack}`, 502)));
});
});

0 comments on commit 8143f66

Please sign in to comment.