mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix
This commit is contained in:
parent
7431814d1e
commit
9c41251164
2 changed files with 2 additions and 2 deletions
|
|
@ -124,7 +124,7 @@ export function createCRUDCommandRules (cmdPrefix, name, variable, detail = true
|
|||
this[`importCloud${upperVariable}`] = async function (e) {
|
||||
const id = e.msg.replace(new RegExp(cmdPrefix + `导入${name}`), '')
|
||||
if (id) {
|
||||
const instance = await manager.getInstanceByCloudId(id)
|
||||
const instance = manager.getInstanceByCloudId ? (await manager.getInstanceByCloudId(id)) : (await manager.getInstanceTByCloudId(id))
|
||||
if (instance) {
|
||||
e.reply(`${name}已存在,尝试导入最新版本`, true)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue