mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
fix: bind token
This commit is contained in:
parent
d69b46f188
commit
95d14fa4a4
1 changed files with 1 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ export class ChatgptManagement extends plugin {
|
||||||
if (!token.startsWith('ey') || token.length < 20) {
|
if (!token.startsWith('ey') || token.length < 20) {
|
||||||
await this.reply('ChatGPT AccessToken格式错误', true)
|
await this.reply('ChatGPT AccessToken格式错误', true)
|
||||||
this.finish('saveToken')
|
this.finish('saveToken')
|
||||||
|
return
|
||||||
}
|
}
|
||||||
await redis.set('CHATGPT:TOKEN', token)
|
await redis.set('CHATGPT:TOKEN', token)
|
||||||
await this.reply('ChatGPT AccessToken设置成功', true)
|
await this.reply('ChatGPT AccessToken设置成功', true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue