mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2026-04-05 02:16:54 +08:00
8 lines
351 B
JavaScript
8 lines
351 B
JavaScript
import os from 'os'
|
|
import fs from "fs"
|
|
import path from 'path'
|
|
|
|
// extract from NeteasyCloudMusicAPI/generateConfig.js and avoid bugs in there (generateConfig require main.js but the main.js has bugs)
|
|
if (!fs.existsSync(path.resolve(os.tmpdir(), 'anonymous_token'))) {
|
|
fs.writeFileSync(path.resolve(os.tmpdir(), 'anonymous_token'), '', 'utf-8')
|
|
} |