fix(eslint): fix files which have eslint problems

This commit is contained in:
MoeFurina
2025-11-15 13:25:09 +08:00
parent fe28194445
commit 9d18639464
5 changed files with 52 additions and 38 deletions
+3 -3
View File
@@ -235,7 +235,7 @@ async function consturctServer(moduleDefs) {
if (ip == '::1') {
ip = global.cnIp
}
// logger.info(ip)
logger.info('Requested from ip:', ip)
obj[3] = {
...obj[3],
ip,
@@ -258,11 +258,11 @@ async function consturctServer(moduleDefs) {
const source = process.env.UNBLOCK_SOURCE
? process.env.UNBLOCK_SOURCE.split(',')
: ['pyncmd', 'bodian', 'kuwo', 'qq', 'migu', 'kugou']
logger.info('Starting unblock:', source)
logger.info('Starting unblock(uses general unblock):', source)
const { url } = await match(req.query.id, source)
song.url = url
song.freeTrialInfo = 'null'
logger.info('Unblock success!')
logger.info('Unblock success! url:', song.url)
}
if (song.url && song.url.includes('kuwo')) {
const proxy = process.env.PROXY_URL