解决网络拥堵提示问题

This commit is contained in:
binaryify
2022-09-12 17:23:49 +08:00
parent b4f6ba0884
commit 3cca8d2924
8 changed files with 9 additions and 7 deletions
+7
View File
@@ -57,6 +57,11 @@ const createRequest = (method, url, data = {}, options) => {
}
// headers['X-Real-IP'] = '118.88.88.88'
if (typeof options.cookie === 'object') {
options.cookie = {
...options.cookie,
__remember_me: true,
NMTID: 'xxx',
}
if (!options.cookie.MUSIC_U) {
// 游客
if (!options.cookie.MUSIC_A) {
@@ -73,6 +78,8 @@ const createRequest = (method, url, data = {}, options) => {
.join('; ')
} else if (options.cookie) {
headers['Cookie'] = options.cookie
} else {
headers['Cookie'] = '__remember_me=true; NMTID=xxx'
}
// console.log(options.cookie, headers['Cookie'])
if (options.crypto === 'weapi') {