mirror of
https://github.com/gedoor/legado.git
synced 2024-09-01 09:34:25 +08:00
优化
This commit is contained in:
parent
7128ede82c
commit
66a30bea4c
@ -24,6 +24,6 @@
|
||||
"type": "text"
|
||||
}
|
||||
],
|
||||
"loginCheckJs": ""
|
||||
"loginCheckJs": "var response = result;\nif (response.headers().get(\"Content-Type\") != \"audio/mpeg\") {\n var body = JSON.parse(response.body().string())\n if (body.status == 40000001) {\n source.login()\n java.getHeaderMap().putAll(source.getHeaderMap(true))\n response = java.getResponse()\n }\n}\nresponse"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user