From f54888afd10698697c2e4791f44eb7b6d14aeea8 Mon Sep 17 00:00:00 2001 From: AiHaibara <166741903+jyx04@users.noreply.github.com> Date: Sun, 9 Jun 2024 00:07:16 +0800 Subject: [PATCH] Update _worker.js --- _worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_worker.js b/_worker.js index 6ee8c3a..e6ebdc9 100644 --- a/_worker.js +++ b/_worker.js @@ -2686,10 +2686,11 @@ if (userName.length > 50) { // 如果输入用户名fk开头,直接视作sharetoken +if (userName){ if (userName.startsWith('fk-')) { const shareToken = userName; return Response.redirect(await getOAuthLink(shareToken, proxiedDomain), 302); -} +}} const userRegex = new RegExp(`^${userName}_(\\d+)$`); let fullUserName = userName; let foundSuffix = false;