Pre Merge pull request !113 from Conard/fix-sign-api-replace

This commit is contained in:
Conard 2023-09-28 07:22:08 +00:00 committed by Gitee
commit 282af4d276
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ export default async function createQQ () {
} }
if (ret.signAPI) { if (ret.signAPI) {
bot = bot.replace(/sign_api_addr:\s*/, `sign_api_addr: ${ret.signAPI}`); bot = bot.replace(/sign_api_addr:/g, `sign_api_addr: ${ret.signAPI}`)
} }
fs.writeFileSync(`${file}bot.yaml`, bot, 'utf8') fs.writeFileSync(`${file}bot.yaml`, bot, 'utf8')