mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-08 19:16:37 +08:00
在 updateToken 函数中判断传入的参数是否为空格符,如果是则将其替换为 "0"
在测试中如果输入正确的 "Code" 且 "Token" 输入一个空格符,则可以查询到主站点的key额度。 固将其替换为任意字符。
This commit is contained in:
parent
bf8d136936
commit
3e71167962
@ -25,6 +25,9 @@ export const useAccessStore = create<AccessControlStore>()(
|
||||
set((state) => ({ accessCode: code }));
|
||||
},
|
||||
updateToken(token: string) {
|
||||
if (token === " ") {
|
||||
token = '0';
|
||||
}
|
||||
set((state) => ({ token }));
|
||||
},
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user