From 3e71167962f5d4ba196e5928676c54822194daa5 Mon Sep 17 00:00:00 2001 From: comHeop <1533115017@qq.com> Date: Tue, 4 Apr 2023 20:14:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=20updateToken=20=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E4=B8=AD=E5=88=A4=E6=96=AD=E4=BC=A0=E5=85=A5=E7=9A=84=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=98=AF=E5=90=A6=E4=B8=BA=E7=A9=BA=E6=A0=BC=E7=AC=A6?= =?UTF-8?q?=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=98=AF=E5=88=99=E5=B0=86=E5=85=B6?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E4=B8=BA=20"0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在测试中如果输入正确的 "Code" 且 "Token" 输入一个空格符,则可以查询到主站点的key额度。 固将其替换为任意字符。 --- app/store/access.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/store/access.ts b/app/store/access.ts index 9c61dfa01..fef387d24 100644 --- a/app/store/access.ts +++ b/app/store/access.ts @@ -25,6 +25,9 @@ export const useAccessStore = create()( set((state) => ({ accessCode: code })); }, updateToken(token: string) { + if (token === " ") { + token = '0'; + } set((state) => ({ token })); }, }),