加入判空逻辑

This commit is contained in:
kuangthree 2024-02-03 19:37:40 +08:00
parent 5926f99bcb
commit 175a39dbc0
1 changed files with 4 additions and 4 deletions

View File

@ -107,9 +107,9 @@ async function createEmptyExtension(name){
}, },
}, },
intro:extensionInfo.intro?extensionInfo.intro.replace("${assetURL}",lib.assetURL):"", intro:extensionInfo.intro?extensionInfo.intro.replace("${assetURL}",lib.assetURL):"",
author:extensionInfo.author, author:extensionInfo.author?extensionInfo.author:"未知",
diskURL:extensionInfo.diskURL, diskURL:extensionInfo.diskURL?extensionInfo.diskURL:"",
forumURL:extensionInfo.forumURL, forumURL:extensionInfo.forumURL?extensionInfo.forumURL:"",
version:extensionInfo.version, version:extensionInfo.version?extensionInfo.version:"1.0.0",
},files:{"character":[],"card":[],"skill":[],"audio":[]}} },files:{"character":[],"card":[],"skill":[],"audio":[]}}
} }