mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-24 00:21:23 +08:00
fix: prettier
This commit is contained in:
@@ -25,9 +25,7 @@ moduleFiles.forEach((file) => {
|
||||
|
||||
obj[fn] = function (data = {}) {
|
||||
const cookie =
|
||||
typeof data.cookie === 'string'
|
||||
? cookieToJson(data.cookie)
|
||||
: data.cookie
|
||||
typeof data.cookie === 'string' ? cookieToJson(data.cookie) : data.cookie
|
||||
|
||||
return fileModule(
|
||||
{
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
const QRCode = require('qrcode')
|
||||
const {
|
||||
generateChainId,
|
||||
getCookieHeader,
|
||||
hasCookie,
|
||||
} = require('../util/index')
|
||||
const { generateChainId, getCookieHeader, hasCookie } = require('../util/index')
|
||||
|
||||
module.exports = (query) => {
|
||||
return new Promise(async (resolve) => {
|
||||
|
||||
+1
-3
@@ -97,9 +97,7 @@ module.exports = {
|
||||
let separator = item.indexOf('=')
|
||||
// 只按第一个等号拆分,保留 Cookie 值中的等号
|
||||
if (separator > 0) {
|
||||
obj[item.slice(0, separator).trim()] = item
|
||||
.slice(separator + 1)
|
||||
.trim()
|
||||
obj[item.slice(0, separator).trim()] = item.slice(separator + 1).trim()
|
||||
}
|
||||
}
|
||||
return obj
|
||||
|
||||
Reference in New Issue
Block a user