fix: 修复anonymous_token路径异常 #1795

This commit is contained in:
binaryify
2023-09-12 11:22:57 +08:00
parent 39ad34fa0b
commit 957213bb93
5 changed files with 25 additions and 5 deletions
Regular → Executable
+1
View File
@@ -8,6 +8,7 @@ async function start() {
if (!fs.existsSync(path.resolve(tmpPath, 'anonymous_token'))) {
fs.writeFileSync(path.resolve(tmpPath, 'anonymous_token'), '', 'utf-8')
}
// 启动时更新anonymous_token
const generateConfig = require('./generateConfig')
await generateConfig()
require('./server').serveNcmApi({