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
90a1f6a084
commit
d8999c77e6
1 changed files with 3 additions and 3 deletions
|
|
@ -245,7 +245,7 @@ export class help extends plugin {
|
|||
currentUse,
|
||||
use
|
||||
}
|
||||
await redis.set('CHATGPT:UPLOAD_PROMPT', JSON.stringify(extraData), 3600)
|
||||
await redis.set('CHATGPT:UPLOAD_PROMPT', JSON.stringify(extraData), 300)
|
||||
this.setContext('uploadPromptConfirm')
|
||||
}
|
||||
|
||||
|
|
@ -268,7 +268,7 @@ export class help extends plugin {
|
|||
this.finish('uploadPromptConfirm')
|
||||
return
|
||||
}
|
||||
await redis.set('CHATGPT:UPLOAD_PROMPT', JSON.stringify(extraData), 600)
|
||||
await redis.set('CHATGPT:UPLOAD_PROMPT', JSON.stringify(extraData), 300)
|
||||
await this.reply('请输入对该设定的描述或备注,便于其他人快速了解该设定', true)
|
||||
this.finish('uploadPromptConfirm')
|
||||
this.setContext('uploadPromptDescription')
|
||||
|
|
@ -285,7 +285,7 @@ export class help extends plugin {
|
|||
}
|
||||
let extraData = JSON.parse(await redis.get('CHATGPT:UPLOAD_PROMPT'))
|
||||
extraData.description = description
|
||||
await redis.set('CHATGPT:UPLOAD_PROMPT', JSON.stringify(extraData), 3600)
|
||||
await redis.set('CHATGPT:UPLOAD_PROMPT', JSON.stringify(extraData), 300)
|
||||
await this.reply('该设定是否是R18设定?请回复是或否', true)
|
||||
this.finish('uploadPromptDescription')
|
||||
this.setContext('uploadPromptR18')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue