mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 上传设定改名字无效的问题
This commit is contained in:
parent
9e69a00c10
commit
af2b879f74
2 changed files with 2 additions and 0 deletions
|
|
@ -292,6 +292,7 @@ export class help extends plugin {
|
|||
let extraData = JSON.parse(await redis.get('CHATGPT:UPLOAD_PROMPT'))
|
||||
if (name !== '确定') {
|
||||
extraData.currentUse = name
|
||||
await redis.set('CHATGPT:UPLOAD_PROMPT', JSON.stringify(extraData), 300)
|
||||
}
|
||||
if (!getPromptByName(extraData.currentUse)) {
|
||||
await redis.del('CHATGPT:UPLOAD_PROMPT')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue